Advanced file system diagnostics and permission management.

Static methods

staticchmod(path:String, mode:Int):Bool

Changes the permissions (mode) of a file or directory. On Windows, this is a best-effort mapping (Write bit toggles READONLY attribute).

Parameters:

path

The filesystem path.

mode

Bitmask of FilePermission values.

Returns:

True if successful.

staticgetType(path:String):FileType

Convenience method to get just the file type.

@:has_untypedstaticstat(path:String):NativeFileStat

Retrieves detailed 64-bit statistics for the given path.

Parameters:

path

The filesystem path.

Returns:

NativeFileStat or null if the path does not exist or an error occurred.