xtd 0.2.0
Loading...
Searching...
No Matches
file attributes

Definition

file attributes definitions.

Warning
Internal use only

Variables

constexpr int32_t FILE_ATTRIBUTE_READONLY
 The file is read-only.
 
constexpr int32_t FILE_ATTRIBUTE_HIDDEN
 The file is hidden, and thus is not included in an ordinary directory listing.
 
constexpr int32_t FILE_ATTRIBUTE_SYSTEM
 The file is a system file. The file is part of the operating system or is used exclusively by the operating system.
 
constexpr int32_t FILE_ATTRIBUTE_DIRECTORY
 The file is a directory.
 
constexpr int32_t FILE_ATTRIBUTE_ARCHIVE
 The file's archive status. Applications use this attribute to mark files for backup or removal.
 
constexpr int32_t FILE_ATTRIBUTE_DEVICE
 Reserved for future use.
 
constexpr int32_t FILE_ATTRIBUTE_NORMAL
 The file is normal and has no other attributes set. This attribute is valid only if used alone.
 
constexpr int32_t FILE_ATTRIBUTE_TEMPORARY
 The file is temporary. File systems attempt to keep all of 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.
 
constexpr int32_t FILE_ATTRIBUTE_SPARSE_FILE
 The file is a sparse file. Sparse files are typically large files whose data are mostly zeros.
 
constexpr int32_t FILE_ATTRIBUTE_REPARSE_POINT
 The file contains a reparse point, which is a block of user-defined data associated with a file or a directory.
 
constexpr int32_t FILE_ATTRIBUTE_COMPRESSED
 The file is compressed.
 
constexpr int32_t FILE_ATTRIBUTE_OFFLINE
 The file is offline. The data of the file is not immediately available.
 
constexpr int32_t FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
 The file will not be indexed by the operating system's content indexing service.
 
constexpr int32_t FILE_ATTRIBUTE_ENCRYPTED
 The file or directory is encrypted. For a file, this means that all data in the file is encrypted. For a directory, this means that encryption is the default for newly created files and directories.
 
constexpr int32_t FILE_ATTRIBUTE_INTEGRITY_STREAM
 The directory or user data stream is configured with integrity (only supported on ReFS volumes). It is not included in an ordinary directory listing. The integrity setting persists with the file if it's renamed. If a file is copied the destination file will have integrity set if either the source file or destination directory have integrity set.
 
constexpr int32_t FILE_ATTRIBUTE_VIRTUAL
 This value is reserved for system use.
 
constexpr int32_t FILE_ATTRIBUTE_NO_SCRUB_DATA
 The user data stream not to be read by the background data integrity scanner (AKA scrubber). When set on a directory it only provides inheritance. This flag is only supported on Storage Spaces and ReFS volumes. It is not included in an ordinary directory listing.
 
constexpr int32_t FILE_ATTRIBUTE_EA
 (Not documented).
 
constexpr int32_t FILE_ATTRIBUTE_PINNED
 (Not documented).
 
constexpr int32_t FILE_ATTRIBUTE_UNPINNED
 (Not documented).
 
constexpr int32_t FILE_ATTRIBUTE_RECALL_ON_OPEN
 This attribute only appears in directory enumeration classes (FILE_DIRECTORY_INFORMATION, FILE_BOTH_DIR_INFORMATION, etc.). When this attribute is set, it means that the file or directory has no physical representation on the local system; the item is virtual. Opening the item will be more expensive than normal, e.g. it will cause at least some of it to be fetched from a remote store.
 
constexpr int32_t FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS
 When this attribute is set, it means that the file or directory is not fully present locally. For a file that means that not all of its data is on local storage (e.g. it may be sparse with some data still in remote storage). For a directory it means that some of the directory contents are being virtualized from another location. Reading the file / enumerating the directory will be more expensive than normal, e.g. it will cause at least some of the file/directory content to be fetched from a remote store. Only kernel-mode callers can set this bit.
 

Variable Documentation

◆ FILE_ATTRIBUTE_READONLY

constexpr int32_t FILE_ATTRIBUTE_READONLY
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

The file is read-only.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_HIDDEN

constexpr int32_t FILE_ATTRIBUTE_HIDDEN
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

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

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_SYSTEM

constexpr int32_t FILE_ATTRIBUTE_SYSTEM
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

The file is a system file. The file is part of the operating system or is used exclusively by the operating system.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_DIRECTORY

constexpr int32_t FILE_ATTRIBUTE_DIRECTORY
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

The file is a directory.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_ARCHIVE

constexpr int32_t FILE_ATTRIBUTE_ARCHIVE
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

The file's archive status. Applications use this attribute to mark files for backup or removal.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_DEVICE

constexpr int32_t FILE_ATTRIBUTE_DEVICE
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

Reserved for future use.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_NORMAL

constexpr int32_t FILE_ATTRIBUTE_NORMAL
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

The file is normal and has no other attributes set. This attribute is valid only if used alone.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_TEMPORARY

constexpr int32_t FILE_ATTRIBUTE_TEMPORARY
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

The file is temporary. File systems attempt to keep all of 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.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_SPARSE_FILE

constexpr int32_t FILE_ATTRIBUTE_SPARSE_FILE
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

The file is a sparse file. Sparse files are typically large files whose data are mostly zeros.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_REPARSE_POINT

constexpr int32_t FILE_ATTRIBUTE_REPARSE_POINT
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

The file contains a reparse point, which is a block of user-defined data associated with a file or a directory.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_COMPRESSED

constexpr int32_t FILE_ATTRIBUTE_COMPRESSED
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

The file is compressed.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_OFFLINE

constexpr int32_t FILE_ATTRIBUTE_OFFLINE
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

The file is offline. The data of the file is not immediately available.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_NOT_CONTENT_INDEXED

constexpr int32_t FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

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

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_ENCRYPTED

constexpr int32_t FILE_ATTRIBUTE_ENCRYPTED
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

The file or directory is encrypted. For a file, this means that all data in the file is encrypted. For a directory, this means that encryption is the default for newly created files and directories.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_INTEGRITY_STREAM

constexpr int32_t FILE_ATTRIBUTE_INTEGRITY_STREAM
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

The directory or user data stream is configured with integrity (only supported on ReFS volumes). It is not included in an ordinary directory listing. The integrity setting persists with the file if it's renamed. If a file is copied the destination file will have integrity set if either the source file or destination directory have integrity set.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_VIRTUAL

constexpr int32_t FILE_ATTRIBUTE_VIRTUAL
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

This value is reserved for system use.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_NO_SCRUB_DATA

constexpr int32_t FILE_ATTRIBUTE_NO_SCRUB_DATA
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

The user data stream not to be read by the background data integrity scanner (AKA scrubber). When set on a directory it only provides inheritance. This flag is only supported on Storage Spaces and ReFS volumes. It is not included in an ordinary directory listing.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_EA

constexpr int32_t FILE_ATTRIBUTE_EA
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

(Not documented).

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_PINNED

constexpr int32_t FILE_ATTRIBUTE_PINNED
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

(Not documented).

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_UNPINNED

constexpr int32_t FILE_ATTRIBUTE_UNPINNED
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

(Not documented).

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_RECALL_ON_OPEN

constexpr int32_t FILE_ATTRIBUTE_RECALL_ON_OPEN
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

This attribute only appears in directory enumeration classes (FILE_DIRECTORY_INFORMATION, FILE_BOTH_DIR_INFORMATION, etc.). When this attribute is set, it means that the file or directory has no physical representation on the local system; the item is virtual. Opening the item will be more expensive than normal, e.g. it will cause at least some of it to be fetched from a remote store.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS

constexpr int32_t FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS
constexpr

#include <xtd.core.native/include/xtd/native/file_attribute.hpp>

When this attribute is set, it means that the file or directory is not fully present locally. For a file that means that not all of its data is on local storage (e.g. it may be sparse with some data still in remote storage). For a directory it means that some of the directory contents are being virtualized from another location. Reading the file / enumerating the directory will be more expensive than normal, e.g. it will cause at least some of the file/directory content to be fetched from a remote store. Only kernel-mode callers can set this bit.

Library
xtd.core.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only