ΒΆstd::error_code status(
const llvm::Twine& path,
llvm::sys::fs::file_status& result,
bool follow = true)
std::error_code status(
const llvm::Twine& path,
llvm::sys::fs::file_status& result,
bool follow = true)
Description
Get file status as if by POSIX stat().
Declared at: llvm/include/llvm/Support/FileSystem.h:645
Parameters
- const llvm::Twine& path
- Input path.
- llvm::sys::fs::file_status& result
- Set to the file status.
- bool follow = true
- When true, follows symlinks. Otherwise, the symlink itself is statted.
Returns
errc::success if result has been successfully set, otherwise a platform-specific error_code.