Single File System: Virtual File System Delphi Library
for Archive / Backup with Transparent Compression and Strong Encryption


Returns the file attributes of FileName within a single file system.

function FileGetAttr(const FileName: string): Integer;

FileGetAttr returns the attributes of the file within a single file system as a string of bits. This value is the same as the Attr field of a TSearchRec record. Check for individual attributes with code such as the following:

Attrs := SingleFileSystem.FileGetAttr('MyFile.sys');

if Attrs and faHidden <> 0 then
SingleFileSystem.FileSetAttr('MyFile.sys', Attrs - faHidden);

A return value of -1 indicates that an error occurred.

See TSearchRec for a description of the individual attribute constants.

© 2000-2004 AidAim Software LLC Single File System: Single-file Delphi Virtual File Syste