LLVM API Documentation
#include <FileSystem.h>
Public Member Functions | |
| file_status (file_type v=file_type::status_error, perms prms=perms_not_known) | |
| file_type | type () const |
| perms | permissions () const |
| void | type (file_type v) |
| void | permissions (perms p) |
Friends | |
| bool | equivalent (file_status A, file_status B) |
| Do file_status's represent the same thing? | |
| error_code | status (const Twine &path, file_status &result) |
| Get file status as if by POSIX stat(). | |
file_status - Represents the result of a call to stat and friends. It has a platform specific member to store the result.
Definition at line 149 of file FileSystem.h.
| llvm::sys::fs::file_status::file_status | ( | file_type | v = file_type::status_error, |
| perms | prms = perms_not_known |
||
| ) | [inline, explicit] |
Definition at line 168 of file FileSystem.h.
| perms llvm::sys::fs::file_status::permissions | ( | ) | const [inline] |
Definition at line 174 of file FileSystem.h.
Referenced by llvm::FileOutputBuffer::create().
| void llvm::sys::fs::file_status::permissions | ( | perms | p | ) | [inline] |
Definition at line 178 of file FileSystem.h.
| file_type llvm::sys::fs::file_status::type | ( | ) | const [inline] |
Definition at line 173 of file FileSystem.h.
Referenced by llvm::FileOutputBuffer::create(), llvm::sys::fs::exists(), llvm::sys::fs::is_directory(), llvm::sys::fs::is_regular_file(), llvm::sys::fs::is_symlink(), llvm::sys::fs::remove_all(), and llvm::sys::fs::status_known().
| void llvm::sys::fs::file_status::type | ( | file_type | v | ) | [inline] |
Definition at line 177 of file FileSystem.h.
| bool equivalent | ( | file_status | A, |
| file_status | B | ||
| ) | [friend] |
Do file_status's represent the same thing?
| A | Input file_status. |
| B | Input file_status. |
assert(status_known(A) || status_known(B));
| error_code status | ( | const Twine & | path, |
| file_status & | result | ||
| ) | [friend] |
Get file status as if by POSIX stat().
| path | Input path. |
| result | Set to the file status. |