NtfsFileAttributes (Azure SDK for Java Reference Documentation)
David Richardson
Published Feb 16, 2026
Enum Constant Summary
Enum Constants Enum Constant and Description ARCHIVEThe file is a candidate for backup or removal.
DIRECTORYThe file is a directory.
HIDDENThe file is hidden, and thus is not included in ordinary directory listing.
NO_SCRUB_DATAThe file or directory is excluded from the data integrity scan.
NORMALThe file is a standard file that has no special attributes.
NOT_CONTENT_INDEXEDThe file will not be indexed by the operating system's content indexing service.
OFFLINEThe file is offline.
READ_ONLYThe file is read-only.
SYSTEMThe file is a system file.
TEMPORARYThe file is temporary.
Method Summary
Enum Constant Detail
HIDDEN
public static final NtfsFileAttributes HIDDEN
The file is hidden, and thus is not included in ordinary directory listing.
SYSTEM
public static final NtfsFileAttributes SYSTEM
The file is a system file. That is, the file is part of the operating system or is used exclusively by the operating system.
NORMAL
public static final NtfsFileAttributes NORMAL
The file is a standard file that has no special attributes.
ARCHIVE
public static final NtfsFileAttributes ARCHIVE
The file is a candidate for backup or removal.
TEMPORARY
public static final NtfsFileAttributes TEMPORARY
The file is temporary. A temporary file contains data that is needed while an application is executing but is not needed after the application is finished. File systems try to keep all the data in memory for quicker access rather than flushing the data back to mass storage. A temporary file should be deleted by the application as soon as it is no longer needed.
OFFLINE
public static final NtfsFileAttributes OFFLINE
The file is offline. The data of the file is not immediately available.
NOT_CONTENT_INDEXED
public static final NtfsFileAttributes NOT_CONTENT_INDEXED
The file will not be indexed by the operating system's content indexing service.
NO_SCRUB_DATA
public static final NtfsFileAttributes NO_SCRUB_DATA
The file or directory is excluded from the data integrity scan. When this value is applied to a directory, by default, all new files and subdirectories within that directory are excluded from data integrity.
Method Detail
toAttributes
public static EnumSet<NtfsFileAttributes> toAttributes(String ntfsAttributes)
Creates an enum set of
NtfsFileAttributesfrom a valid String .- Parameters:
ntfsAttributes- AStringthat represents the ntfs attributes. The string must contain one or more of the following values delimited by a |. Note they are case sensitive.ReadOnlyHiddenSystemNoneDirectoryArchiveTemporaryOfflineNotContentIndexedNoScrubData
- Returns:
- A set of
NtfsFileAttributesthat were contained in the passed string. - Throws:
IllegalArgumentException- IfntfsAttributescontains an attribute that is unknown.
Copyright © 2020 Microsoft Corporation. All rights reserved.