LLVM  8.0.0svn
Public Member Functions | List of all members
llvm::sys::fs::directory_entry Class Reference

directory_entry - A single entry in a directory. More...

#include "llvm/Support/FileSystem.h"

Public Member Functions

 directory_entry (const Twine &Path, bool FollowSymlinks=true, file_type Type=file_type::type_unknown, basic_file_status Status=basic_file_status())
 
 directory_entry ()=default
 
void replace_filename (const Twine &Filename, file_type Type, basic_file_status Status=basic_file_status())
 
const std::string & path () const
 
ErrorOr< basic_file_statusstatus () const
 
file_type type () const
 
bool operator== (const directory_entry &RHS) const
 
bool operator!= (const directory_entry &RHS) const
 
bool operator< (const directory_entry &RHS) const
 
bool operator<= (const directory_entry &RHS) const
 
bool operator> (const directory_entry &RHS) const
 
bool operator>= (const directory_entry &RHS) const
 

Detailed Description

directory_entry - A single entry in a directory.

Definition at line 1104 of file FileSystem.h.

Constructor & Destructor Documentation

◆ directory_entry() [1/2]

llvm::sys::fs::directory_entry::directory_entry ( const Twine Path,
bool  FollowSymlinks = true,
file_type  Type = file_type::type_unknown,
basic_file_status  Status = basic_file_status() 
)
inlineexplicit

Definition at line 1116 of file FileSystem.h.

◆ directory_entry() [2/2]

llvm::sys::fs::directory_entry::directory_entry ( )
default

Member Function Documentation

◆ operator!=()

bool llvm::sys::fs::directory_entry::operator!= ( const directory_entry RHS) const
inline

◆ operator<()

bool llvm::sys::fs::directory_entry::operator< ( const directory_entry RHS) const

◆ operator<=()

bool llvm::sys::fs::directory_entry::operator<= ( const directory_entry RHS) const

◆ operator==()

bool llvm::sys::fs::directory_entry::operator== ( const directory_entry RHS) const
inline

Definition at line 1142 of file FileSystem.h.

◆ operator>()

bool llvm::sys::fs::directory_entry::operator> ( const directory_entry RHS) const

◆ operator>=()

bool llvm::sys::fs::directory_entry::operator>= ( const directory_entry RHS) const

◆ path()

const std::string& llvm::sys::fs::directory_entry::path ( ) const
inline

◆ replace_filename()

void llvm::sys::fs::directory_entry::replace_filename ( const Twine Filename,
file_type  Type,
basic_file_status  Status = basic_file_status() 
)

◆ status()

ErrorOr<basic_file_status> llvm::sys::fs::directory_entry::status ( ) const

◆ type()

file_type llvm::sys::fs::directory_entry::type ( ) const
inline

Definition at line 1135 of file FileSystem.h.

References llvm::sys::fs::status(), and llvm::sys::fs::type_unknown.


The documentation for this class was generated from the following files: