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) |
Returns
|
bool
|
Exceptions
|
ArgumentException
Not full path (when not used flag UseRawPath). |
|
AuException
Failed. Not thrown if used flag DontThrow. |
Remarks
Calls API GetFileAttributes. Supports lastError (useful with flag DontThrow). For NTFS links, gets attributes of the link, not of its target.