if STREAM.isatty():

Eryk Sun eryksun at gmail.com
Fri Aug 30 03:31:52 EDT 2019


On 8/30/19, Eryk Sun <eryksun at 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".



More information about the Python-list mailing list