Strange attribute value specified by FindFirst (), Attr = 2080

When searching for files with FindFirst (), I get the attribute value in the TSearchRec.Attr 2080 field. It is not listed in the help, since only these values ​​are available, and no combination of them gives 2080:

1 FILE
2 fahidden
4 faSysFile
8 faVolumeID
16 faDirectory
32 faArchive
64 faSymLink
71 faAnyFile

Does anyone know what 2080 means and why am I getting this attribute value? OS - XP.

+3
source share
4 answers

, , FindFirst(), , , . , , , TSearchRec.Attr, . " " .

+6

TSearchRec Windows TWin32FindData FindFirstFile.

( , ) 2080 $0820, , . File_Attribute_Archive, Delphi faArchive, File_Attribute_Compressed. , Delphi, JclFileUtils.faCompressed JCL.

+5

JclFileUtils :

faNormalFile        = $00000080;
...
faNotContentIndexed = $00002000;

2080 , .

: http://www.tek-tips.com/viewthread.cfm?qid=1543818&page=9

EDIT: 2080 id decimal 2080 dec = 820 hex, :

 faArchive     = $00000020;
 faCompressed  = $00000800;
+3

faDirectory, , .

if ((sr.Attr AND faDirectory) <> 0) then

begin 
     .......
end;
+1

Source: https://habr.com/ru/post/1727365/


All Articles