class basic_file_status
Declaration
class basic_file_status { /* full declaration omitted */ };
Description
Represents the result of a call to directory_iterator::status(). This is a subset of the information returned by a regular sys::fs::status() call, and represents the information provided by Windows FileFirstFile/FindNextFile.
Declared at: llvm/include/llvm/Support/FileSystem.h:157
Member Variables
- protected time_t fs_st_atime = 0
- protected time_t fs_st_mtime = 0
- protected uint32_t fs_st_atime_nsec = 0
- protected uint32_t fs_st_mtime_nsec = 0
- protected uid_t fs_st_uid = 0
- protected gid_t fs_st_gid = 0
- protected off_t fs_st_size = 0
- protected llvm::sys::fs::file_type Type = file_type::status_error
- protected llvm::sys::fs::perms Perms = perms_not_known
Method Overview
- public basic_file_status()
- public basic_file_status(llvm::sys::fs::file_type Type)
- public basic_file_status(llvm::sys::fs::file_type Type, llvm::sys::fs::perms Perms, time_t ATime, uint32_t ATimeNSec, time_t MTime, uint32_t MTimeNSec, uid_t UID, gid_t GID, off_t Size)
- public uint32_t getGroup() const
- public TimePoint<> getLastAccessedTime() const
- public TimePoint<> getLastModificationTime() const
- public uint64_t getSize() const
- public uint32_t getUser() const
- public llvm::sys::fs::perms permissions() const
- public void permissions(llvm::sys::fs::perms p)
- public llvm::sys::fs::file_type type() const
- public void type(llvm::sys::fs::file_type v)
Methods
¶basic_file_status()
basic_file_status()
Declared at: llvm/include/llvm/Support/FileSystem.h:179
¶basic_file_status(llvm::sys::fs::file_type Type)
basic_file_status(llvm::sys::fs::file_type Type)
Declared at: llvm/include/llvm/Support/FileSystem.h:181
Parameters
- llvm::sys::fs::file_type Type
¶basic_file_status(llvm::sys::fs::file_type Type,
llvm::sys::fs::perms Perms,
time_t ATime,
uint32_t ATimeNSec,
time_t MTime,
uint32_t MTimeNSec,
uid_t UID,
gid_t GID,
off_t Size)
basic_file_status(llvm::sys::fs::file_type Type,
llvm::sys::fs::perms Perms,
time_t ATime,
uint32_t ATimeNSec,
time_t MTime,
uint32_t MTimeNSec,
uid_t UID,
gid_t GID,
off_t Size)
Declared at: llvm/include/llvm/Support/FileSystem.h:184
Parameters
- llvm::sys::fs::file_type Type
- llvm::sys::fs::perms Perms
- time_t ATime
- uint32_t ATimeNSec
- time_t MTime
- uint32_t MTimeNSec
- uid_t UID
- gid_t GID
- off_t Size
¶uint32_t getGroup() const
uint32_t getGroup() const
Declared at: llvm/include/llvm/Support/FileSystem.h:224
¶TimePoint<> getLastAccessedTime() const
TimePoint<> getLastAccessedTime() const
Description
The file access time as reported from the underlying file system. Also see comments on \c getLastModificationTime() related to the precision of the returned value.
Declared at: llvm/include/llvm/Support/FileSystem.h:211
¶TimePoint<> getLastModificationTime() const
TimePoint<> getLastModificationTime() const
Description
The file modification time as reported from the underlying file system. The returned value allows for nanosecond precision but the actual resolution is an implementation detail of the underlying file system. There is no guarantee for what kind of resolution you can expect, the resolution can differ across platforms and even across mountpoints on the same machine.
Declared at: llvm/include/llvm/Support/FileSystem.h:220
¶uint64_t getSize() const
uint64_t getSize() const
Declared at: llvm/include/llvm/Support/FileSystem.h:225
¶uint32_t getUser() const
uint32_t getUser() const
Declared at: llvm/include/llvm/Support/FileSystem.h:223
¶llvm::sys::fs::perms permissions() const
llvm::sys::fs::perms permissions() const
Declared at: llvm/include/llvm/Support/FileSystem.h:205
¶void permissions(llvm::sys::fs::perms p)
void permissions(llvm::sys::fs::perms p)
Declared at: llvm/include/llvm/Support/FileSystem.h:242
Parameters
- llvm::sys::fs::perms p
¶llvm::sys::fs::file_type type() const
llvm::sys::fs::file_type type() const
Declared at: llvm/include/llvm/Support/FileSystem.h:204
¶void type(llvm::sys::fs::file_type v)
void type(llvm::sys::fs::file_type v)
Declared at: llvm/include/llvm/Support/FileSystem.h:241
Parameters
- llvm::sys::fs::file_type v