![]() |
![]() ![]() ![]() |
dcFileInfo component.
|
type
|
TdcFileInfoAttributes = set of (fiaArchive, fiaHidden, fiaReadOnly, fiaSystem, fiaDirectory, fiaTemporary, fiaCompressed, fiaOffline);
|
|
property FileAttributes: TdcFileInfoAttributes;
|
The FileAttributes property determines and changes the attributes for the file specified in the FileName property.
|
|
Value | Meaning
|
fiaArchive | The file is an archive file. Applications use this value to mark files for backup or removal;
|
fiaHidden | The file is hidden. It is not included in an ordinary directory listing;
|
fiaReadOnly | The file is read-only. Applications can read the file but cannot write to it or delete it;
|
fiaSystem | The file is part of the operating system or is used exclusively by it;
|
fiaDirectory | The file is a directory;
|
fiaTemporary | The file is being used for temporary storage. Applications should write to the file only if absolutely necessary. Most of the file's data remains in memory without being flushed to the media because the file will soon be deleted;
|
fiaCompressed | The file or directory is compressed. For a file, this means that all of the data in the file is compressed. For a directory, this means that compression is the default for newly created files and subdirectories;
|
fiaOffline | The data of the file is not immediately available. Indicates that the file data has been physically moved to offline storage.
|
1. | fiaTemporary, fiaCompressed and fiaOffline attributes works on NT-family machines only.
|
2. | If you'd like to change file attributes make sure that file not locked by another application. Otherwise they will remains untouched.
|
3. | You can NOT set fiaDirectory flag to usual file, or clear this flag from the directory. You can not change fiaDirectory attribute at all.
|
|
DisplayName, FileSize, FileType, TimeCreated, TimeLastModified properties.
|