int = GetFileAttributes(fileName)

Determines a files attributes.


fileName : PyUnicode

Name of the file to retrieve attributes for.


The win32file module exposes win32file::GetFileAttributes and win32file::GetFileAttributesW separately - both functions will accept either strings or Unicode objects but will always call the named function. This is different than win32api::GetFileAttributes, which only exposes one Python function and automatically calls the appropriate win32 function based on the type of the filename param.