Method filesystem.getProperties
Overload
Gets file or directory attributes, size and times.
public static bool getProperties(string path, out FileProperties properties, FAFlags flags = 0)
Parameters
path (string)
Full path. Supports |
properties (FileProperties)
Receives properties. |
flags (FAFlags) |
Returns
bool
|
Exceptions
ArgumentException
Not full path (when not used flag UseRawPath). |
AuException
The file/directory exists but failed to get its properties. Not thrown if used flag DontThrow. |
Remarks
Calls API GetFileAttributesEx. Supports lastError (useful with flag DontThrow). For NTFS links, gets properties of the link, not of its target. You can also get most of these properties with filesystem.enumerate.