NTFSAttributes class
Definition
Valid set of attributes to set for file or directory. To set attribute for directory, 'Directory' should always be enabled except setting 'None' for directory.
NTFSAttributes(read_only=False, hidden=False, system=False, none=False, directory=False, archive=False, temporary=False, offline=False, not_content_indexed=False, no_scrub_data=False)
- Inheritance
-
builtins.objectNTFSAttributes
Variables
- read_only
- bool
- hidden
- bool
- system
- bool
- none
- bool
- directory
- bool
- archive
- bool
- temporary
- bool
- offline
- bool
- not_content_indexed
- bool
- no_scrub_data
- bool
Methods
| from_string |
Create a NTFSAttributes from a string. To specify permissions you can pass in a string with the desired permissions, e.g. "ReadOnly|Hidden|System" |
from_string
Create a NTFSAttributes from a string.
To specify permissions you can pass in a string with the desired permissions, e.g. "ReadOnly|Hidden|System"
from_string(string)
Parameters
- string
- str
Required
The string which dictates the permissions.
- string
Required
Returns
A NTFSAttributes object