Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Python and file attributes #4

@ghost

Description

The Windows version of Python can access file attributes:

>>> import os
>>> os.stat('C:\Recovery').st_file_attributes
8214

https://docs.python.org/library/os#os.stat_result.st_file_attributes

However the Cygwin version cannot:

>>> import os
>>> os.stat('C:\Recovery').st_file_attributes
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'os.stat_result' object has no attribute
'st_file_attributes'

This is unexpected as other Cygwin tools can access this information:

$ lsattr
-hs------n-- ./Recovery

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions