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

Methods

basic_file_status()

Declared at: llvm/include/llvm/Support/FileSystem.h:179

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)

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

Declared at: llvm/include/llvm/Support/FileSystem.h:224

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

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

Declared at: llvm/include/llvm/Support/FileSystem.h:225

uint32_t getUser() const

Declared at: llvm/include/llvm/Support/FileSystem.h:223

llvm::sys::fs::perms permissions() const

Declared at: llvm/include/llvm/Support/FileSystem.h:205

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

Declared at: llvm/include/llvm/Support/FileSystem.h:204

void type(llvm::sys::fs::file_type v)

Declared at: llvm/include/llvm/Support/FileSystem.h:241

Parameters

llvm::sys::fs::file_type v