LLVM 22.0.0git
|
Represents the result of a call to directory_iterator::status(). More...
#include "llvm/Support/FileSystem.h"
Public Member Functions | |
basic_file_status ()=default | |
basic_file_status (file_type Type) | |
basic_file_status (file_type Type, perms Perms, time_t ATime, uint32_t ATimeNSec, time_t MTime, uint32_t MTimeNSec, uid_t UID, gid_t GID, off_t Size) | |
file_type | type () const |
perms | permissions () const |
LLVM_ABI TimePoint | getLastAccessedTime () const |
The file access time as reported from the underlying file system. | |
LLVM_ABI TimePoint | getLastModificationTime () const |
The file modification time as reported from the underlying file system. | |
uint32_t | getUser () const |
uint32_t | getGroup () const |
uint64_t | getSize () const |
void | type (file_type v) |
void | permissions (perms p) |
Protected Attributes | |
time_t | fs_st_atime = 0 |
time_t | fs_st_mtime = 0 |
uint32_t | fs_st_atime_nsec = 0 |
uint32_t | fs_st_mtime_nsec = 0 |
uid_t | fs_st_uid = 0 |
gid_t | fs_st_gid = 0 |
off_t | fs_st_size = 0 |
file_type | Type = file_type::status_error |
perms | Perms = perms_not_known |
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.
Definition at line 133 of file FileSystem.h.
|
default |
Referenced by llvm::sys::fs::file_status::file_status(), and llvm::sys::fs::file_status::file_status().
|
inlineexplicit |
Definition at line 157 of file FileSystem.h.
References Type.
|
inline |
Definition at line 160 of file FileSystem.h.
References fs_st_atime, fs_st_atime_nsec, fs_st_gid, fs_st_mtime, fs_st_mtime_nsec, fs_st_size, fs_st_uid, Perms, Size, and Type.
|
inline |
Definition at line 200 of file FileSystem.h.
References fs_st_gid.
The file access time as reported from the underlying file system.
Also see comments on getLastModificationTime()
related to the precision of the returned value.
References LLVM_ABI.
Referenced by copyAccessAndModificationTime().
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.
References LLVM_ABI.
Referenced by copyAccessAndModificationTime(), and llvm::pruneCache().
|
inline |
Definition at line 201 of file FileSystem.h.
References fs_st_size.
Referenced by areFilesDifferent().
|
inline |
Definition at line 199 of file FileSystem.h.
References fs_st_uid.
Referenced by llvm::FilePermissionsApplier::apply().
|
inline |
Definition at line 181 of file FileSystem.h.
References Perms.
|
inline |
Definition at line 218 of file FileSystem.h.
References Perms.
|
inline |
Definition at line 180 of file FileSystem.h.
References Type.
Referenced by llvm::FilePermissionsApplier::apply(), llvm::FileCollector::copyFiles(), llvm::FileOutputBuffer::create(), llvm::sys::fs::get_file_type(), and llvm::sys::fs::status_known().
|
inline |
Definition at line 217 of file FileSystem.h.
References Type.
|
protected |
Definition at line 136 of file FileSystem.h.
Referenced by basic_file_status().
|
protected |
Definition at line 138 of file FileSystem.h.
Referenced by basic_file_status().
|
protected |
Definition at line 141 of file FileSystem.h.
Referenced by basic_file_status(), and getGroup().
|
protected |
Definition at line 137 of file FileSystem.h.
Referenced by basic_file_status().
|
protected |
Definition at line 139 of file FileSystem.h.
Referenced by basic_file_status().
|
protected |
Definition at line 142 of file FileSystem.h.
Referenced by basic_file_status(), and getSize().
|
protected |
Definition at line 140 of file FileSystem.h.
Referenced by basic_file_status(), and getUser().
|
protected |
Definition at line 152 of file FileSystem.h.
Referenced by basic_file_status(), llvm::sys::fs::file_status::file_status(), permissions(), and permissions().
|
protected |
Definition at line 151 of file FileSystem.h.
Referenced by basic_file_status(), basic_file_status(), llvm::sys::fs::file_status::file_status(), llvm::sys::fs::file_status::file_status(), type(), and type().