[Python-Dev] Returning Windows file attribute information via os.stat()

Ben Hoyt benhoyt at gmail.com
Tue Jun 10 21:04:12 CEST 2014
>> To solve this problem, what do people think about adding an
>> "st_winattrs" attribute to the object returned by os.stat() on
>> Windows?
>
> +1 to the idea, whatever the exact implementation.

Cool.

I think we should add a st_winattrs integer attribute (on Windows) and
then also add the FILE_ATTRIBUTES_* constants to stat.py per Paul
Moore.

What would be the next steps to get this to happen? Open an issue on
bugs.python.org and submit a patch with tests?

-Ben


More information about the Python-Dev mailing list