共用方式為


NtfsFileAttributes Enum

  • java.lang.Object
    • java.lang.Enum
      • com.azure.storage.file.share.models.NtfsFileAttributes

public enum NtfsFileAttributes
extends Enum<NtfsFileAttributes>

Specifies options for NTFS File Attributes.

Fields

ARCHIVE

The file is a candidate for backup or removal.

DIRECTORY

The file is a directory.

HIDDEN

The file is hidden, and thus is not included in ordinary directory listing.

NORMAL

The file is a standard file that has no special attributes.

NOT_CONTENT_INDEXED

The file will not be indexed by the operating system's content indexing service.

NO_SCRUB_DATA

The file or directory is excluded from the data integrity scan.

OFFLINE

The file is offline.

READ_ONLY

The file is read-only.

SYSTEM

The file is a system file.

TEMPORARY

The file is temporary.

Methods inherited from java.lang.Enum

Methods inherited from java.lang.Object

Methods

toAttributes(String ntfsAttributes)

public static EnumSet toAttributes(String ntfsAttributes)

Creates an enum set of NtfsFileAttributes from a valid String .

Parameters

ntfsAttributes
String
A String that represents the ntfs attributes. The string must contain one or more of the following values delimited by a |. Note they are case-sensitive.
  • ReadOnly
  • Hidden
  • System
  • None
  • Directory
  • Archive
  • Temporary
  • Offline
  • NotContentIndexed
  • NoScrubData

Returns

A set of NtfsFileAttributes that were contained in the passed string.

toString(EnumSet<NtfsFileAttributes> ntfsAttributes)

public static String toString(EnumSet ntfsAttributes)

Converts an enum set of NtfsFileAttributes to a string.

Parameters

ntfsAttributes
EnumSet<NtfsFileAttributes>
Set of NtfsFileAttributes to convert to a string.

Returns

a string that represents the NTFS Attributes in the correct format delimited by | which is described at toAttributes(String ntfsAttributes).

valueOf(String name)

public static NtfsFileAttributes valueOf(String name)

Parameters

name
String

Returns

values()

public static NtfsFileAttributes[] values()

Returns

Applies to