NTFSAttributes Class
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.
- Inheritance
-
builtins.objectNTFSAttributes
Constructor
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)
Parameters
Name | Description |
---|---|
read_only
|
default value: False
|
hidden
|
default value: False
|
system
|
default value: False
|
none
|
default value: False
|
directory
|
default value: False
|
archive
|
default value: False
|
temporary
|
default value: False
|
offline
|
default value: False
|
not_content_indexed
|
default value: False
|
no_scrub_data
|
default value: False
|
Variables
Name | Description |
---|---|
read_only
|
Enable/disable 'ReadOnly' attribute for DIRECTORY or FILE |
hidden
|
Enable/disable 'Hidden' attribute for DIRECTORY or FILE |
system
|
Enable/disable 'System' attribute for DIRECTORY or FILE |
none
|
Enable/disable 'None' attribute for DIRECTORY or FILE to clear all attributes of FILE/DIRECTORY |
directory
|
Enable/disable 'Directory' attribute for DIRECTORY |
archive
|
Enable/disable 'Archive' attribute for DIRECTORY or FILE |
temporary
|
Enable/disable 'Temporary' attribute for FILE |
offline
|
Enable/disable 'Offline' attribute for DIRECTORY or FILE |
not_content_indexed
|
Enable/disable 'NotContentIndexed' attribute for DIRECTORY or FILE |
no_scrub_data
|
Enable/disable 'NoScrubData' attribute for DIRECTORY or FILE |
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
Name | Description |
---|---|
string
Required
|
The string which dictates the permissions. |
Returns
Type | Description |
---|---|
A NTFSAttributes object |
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for