Method filesystem.getAttributes
Overload
Gets file or directory attributes.
public static bool getAttributes(string path, out FileAttributes attributes, FAFlags flags = 0)
Parameters
|
path (string)
Full path. Supports |
|
attributes (FileAttributes)
Receives attributes, or 0 if failed. |
|
flags (FAFlags)
Enum: UseRawPath, DontThrow. |
Returns
|
bool
|
Exceptions
|
ArgumentException
Not full path (when not used flag |
|
AuException
Failed. Not thrown if used flag |
Remarks
Calls API GetFileAttributes. Supports lastError (useful with flag DontThrow).
For NTFS links, gets attributes of the link, not of its target.