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


TSingleFileSystem.FileGetAttr
TSingleFileSystem
Top 


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

function FileGetAttr(const FileName: string): Integer;

Description
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.

Note:   
See TSearchRec for a description of the individual attribute constants.


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