win32file.GetFileInformationByHandleEx
object = GetFileInformationByHandleEx(File, FileInformationClass )
Retrieves extended file information for an open file handle.
Parameters
Comments
Available on Vista and later.Accepts keyword args.
Return Value
Type of returned object is determined by the requested information class
Class | Returned info |
FileBasicInfo | Dict representing a FILE_BASIC_INFO struct |
FileStandardInfo | Dict representing a FILE_STANDARD_INFO struct |
FileNameInfo | String containing the file name, without the drive letter |
FileCompressionInfo | Dict representing a FILE_COMPRESSION_INFO struct |
FileAttributeTagInfo | Dict representing a FILE_ATTRIBUTE_TAG_INFO struct |
FileIdBothDirectoryInfo | Sequence of dicts representing FILE_ID_BOTH_DIR_INFO structs. Call in loop until no more files are returned. |
FileIdBothDirectoryRestartInfo | Sequence of dicts representing FILE_ID_BOTH_DIR_INFO structs. |
FileStreamInfo | Sequence of dicts representing FILE_STREAM_INFO structs |