ST_FileAttributes

File or directory attributes.

TYPE ST_FileAttributes
STRUCT
    bReadOnly          : BOOL;(* FILE_ATTRIBUTE_READONLY *)
    bHidden            : BOOL;(* FILE_ATTRIBUTE_HIDDEN *)
    bSystem            : BOOL;(* FILE_ATTRIBUTE_SYSTEM *)
    bDirectory         : BOOL;(* FILE_ATTRIBUTE_DIRECTORY *)
    bArchive           : BOOL;(* FILE_ATTRIBUTE_ARCHIVE *)
    bDevice            : BOOL;(* FILE_ATTRIBUTE_DEVICE. Under CE: FILE_ATTRIBUTE_INROM or FILE_ATTRIBUTE_ENCRYPTED *)
    bNormal            : BOOL;(* FILE_ATTRIBUTE_NORMAL *)
    bTemporary         : BOOL;(* FILE_ATTRIBUTE_TEMPORARY *)
    bSparseFile        : BOOL;(* FILE_ATTRIBUTE_SPARSE_FILE *)
    bReparsePoint      : BOOL;(* FILE_ATTRIBUTE_REPARSE_POINT *)
    bCompressed        : BOOL;(* FILE_ATTRIBUTE_COMPRESSED *)
    bOffline           : BOOL;(* FILE_ATTRIBUTE_OFFLINE. Under CE: FILE_ATTRIBUTE_ROMSTATICREF *)
    bNotContentIndexed : BOOL; (* FILE_ATTRIBUTE_NOT_CONTENT_INDEXED. Under CE: FILE_ATTRIBUTE_ROMMODULE *)
    bEncrypted         : BOOL;(* FILE_ATTRIBUTE_ENCRYPTED *)
END_STRUCT
END_TYPE

bReadOnly: The file or directory is read-only. Applications can read the file but cannot write to it or delete it. In the case of a directory, applications cannot delete it.

bHidden: The file or directory is hidden. It is not included in an ordinary directory listing.

bSystem: The file or directory is part of the operating system or is used exclusively by the operating system.

bDirectory: The handle identifies a directory.

bArchive: The file or directory is an archive file or directory. Applications use this attribute to mark files for backup or removal.

bDevice: Reserved, not used.

bNormal: The file or directory has no other attributes set. This attribute is valid only if used alone.

bTemporary: The file is being used for temporary storage. File systems attempt to keep all of the data in memory for quicker access, rather than flushing it back to mass storage. A temporary file should be deleted by the application as soon as it is no longer needed.

bSparseFile: The file is a sparse file.

bReparsePoint: The file has an associated reparse point.

bCompressed: The file or directory is compressed. For a file, this means that all of the data in the file is compressed. For a directory, this means that compression is the default for newly created files and subdirectories.

bOffline: The file data is not immediately available. This attribute indicates that the file data has been physically moved to offline storage. This attribute is used by Remote Storage, the hierarchical storage management software.

bNotContentIndexed: The file is not be indexed by the content indexing service.

bEncrypted: 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 subdirectories.

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v2.10.0 Build > 1302

PC or CX (x86)

TcUtilities.Lib

( Standard.Lib; TcBase.Lib; TcSystem.Lib are included automatically )

TwinCAT v2.10.0 Build >= 1301

CX (ARM)