ΒΆstd::error_code access(
const llvm::Twine& Path,
llvm::sys::fs::AccessMode Mode)
std::error_code access(
const llvm::Twine& Path,
llvm::sys::fs::AccessMode Mode)
Description
Can the file be accessed?
Declared at: llvm/include/llvm/Support/FileSystem.h:462
Parameters
- const llvm::Twine& Path
- Input path.
- llvm::sys::fs::AccessMode Mode
Returns
errc::success if the path can be accessed, otherwise a platform-specific error_code.