On 8/30/19, Eryk Sun <eryk...@gmail.com> wrote: > > GetFileType classifies files for all of the following NT device types > as FILE_TYPE_DISK (akin to Unix S_IFBLK):
To clarify, file-system files and directories in a mounted file system on such as device are akin to Unix S_IFREG and S_IFDIR. Their file type is FILE_TYPE_DISK, but this is simply based on the underlying device type. If it's a file-system file, then GetFileAttributesW will succeed. FILE_TYPE_DISK is only akin to S_IFBLK when we open a volume or disk device directly, such as "//./C:" or "//./PhysicalDrive0". -- https://mail.python.org/mailman/listinfo/python-list