FileFlags
Description
Enumeration of behaviour flags for files in a filesystem.
Exactly one of these flags must be specified:
Any of these flags can be specified in addition to the above creation flag:
- See also
Public / Constants
Read
Open an existing file in read-only mode or fail with IOError.NotFound.
Temporary
Create a new temporary file, overwriting any existing one.
Temporary files are deleted automatically when closed.
- See also
Sequential
The file is accessed mostly sequentially.
When this flag is not present, file access is assumed to be random.
This is a hint for the underlying filesystem implementation to improve performance. It does not have any functional implications. For example, a IDataStream for a local file with the sequential hint, IDataStream.CanSeek may still return true.
NoShare
Prohibits the file from being opened again, for example by other processes.
When opening the same file twice using the file flags A and B, a IOError.SharingViolation error will occur in these cases:
MaskCreation
Bitmask of the file flags that control the creation disposition of the file other than Read.