getAttributes

fnuint getAttributes(R)(R name) if (isSomeFiniteCharInputRange!R && !isConvertibleToString!R)

Returns the attributes of the given file.

Note that the file attributes on Windows and POSIX systems are completely different. On Windows, they're what is returned by

GetFileAttributes, whereas on POSIX systems, they're the

st_mode value which is part of the stat struct gotten by calling the stat function.

On POSIX systems, if the given file is a symbolic link, then attributes are the attributes of the file pointed to by the symbolic link.

Parameters

nameThe file to get the attributes of.

Returns

The attributes of the file as a uint.

Throws

FileException on error.
fnuint getAttributes(R)(auto ref R name) if (isConvertibleToString!R)

ditto