FileSystemAttributes class
這是協助程式類別,可建構代表檔案或目錄之 NTFS 屬性的字串。
請參閱https://docs.microsoft.com/en-us/rest/api/storageservices/create-file#file-system-attributes
屬性
archive | 指定目錄或檔案是封存。 應用程式通常會使用此屬性來標記要備份或移除的檔案。 |
directory | 指定控制碼可識別目錄。 |
hidden | 指定隱藏目錄或檔案。 |
none | 指定未設定其他屬性的目錄或檔案。 此屬性只有在單獨使用時才有效。 |
no |
指定背景資料完整性掃描器不讀取的使用者資料流程。 此檔案系統屬性主要是為了提供與 Windows 的相容性。 適用于目錄或檔案。 |
not |
指定目錄或檔案不會由內容索引服務編制索引。 |
offline | 指定目錄或檔案的資料無法立即使用。 此檔案系統屬性主要呈現為提供與 Windows 的相容性 - Azure 檔案儲存體不支援離線儲存選項。 |
readonly | 指定唯讀的目錄或檔案。 |
system | 指定作業系統使用部分或獨佔使用的目錄或檔案。 |
temporary | 指定檔案是否為暫存。 |
方法
parse(string) | 從指定的屬性字串建立 FileSystemAttributes。 如果此方法遇到未對應至有效屬性的字串,就會擲回 Error。 |
to |
將指定的屬性轉換為字串。 |
屬性詳細資料
archive
指定目錄或檔案是封存。 應用程式通常會使用此屬性來標記要備份或移除的檔案。
archive: boolean
屬性值
boolean
directory
指定控制碼可識別目錄。
directory: boolean
屬性值
boolean
hidden
指定隱藏目錄或檔案。
hidden: boolean
屬性值
boolean
none
指定未設定其他屬性的目錄或檔案。 此屬性只有在單獨使用時才有效。
none: boolean
屬性值
boolean
noScrubData
指定背景資料完整性掃描器不讀取的使用者資料流程。 此檔案系統屬性主要是為了提供與 Windows 的相容性。 適用于目錄或檔案。
noScrubData: boolean
屬性值
boolean
notContentIndexed
指定目錄或檔案不會由內容索引服務編制索引。
notContentIndexed: boolean
屬性值
boolean
offline
指定目錄或檔案的資料無法立即使用。 此檔案系統屬性主要呈現為提供與 Windows 的相容性 - Azure 檔案儲存體不支援離線儲存選項。
offline: boolean
屬性值
boolean
readonly
指定唯讀的目錄或檔案。
readonly: boolean
屬性值
boolean
system
指定作業系統使用部分或獨佔使用的目錄或檔案。
system: boolean
屬性值
boolean
temporary
指定檔案是否為暫存。
temporary: boolean
屬性值
boolean
方法詳細資料
parse(string)
從指定的屬性字串建立 FileSystemAttributes。 如果此方法遇到未對應至有效屬性的字串,就會擲回 Error。
static function parse(fileAttributes: string): FileSystemAttributes
參數
- fileAttributes
-
string
標頭 x-ms-file-attributes 的值。
傳回
toString()
將指定的屬性轉換為字串。
function toString(): string
傳回
string
表示 FileSystemAttributes 的字串