FileType

class FileType

Indicates the file’s on-disk type.

On Windows systems a file will never have SYMBOLIC_LINK type; use FileInfo and FILE_ATTRIBUTE_STANDARD_IS_SYMLINK to determine whether a file is a symlink or not. This is due to the fact that NTFS does not have a single filesystem object type for symbolic links - it has files that symlink to files, and directories that symlink to directories. FileType enumeration cannot precisely represent this important distinction, which is why all Windows symlinks will continue to be reported as REGULAR or DIRECTORY.

Fields

class FileType
DIRECTORY

The type of the None singleton.

MOUNTABLE

The type of the None singleton.

REGULAR

The type of the None singleton.

SHORTCUT

The type of the None singleton.

SPECIAL

The type of the None singleton.

The type of the None singleton.

UNKNOWN

The type of the None singleton.