is_directory overloads
Synopses
Declared in <llvm/Support/FileSystem.h>
Return whether Path is a directory, ignoring errors as false.
bool
is_directory(Twine const& Path);
Does status represent a directory?
bool
is_directory(basic_file_status const& status);
Is path a directory?
std::error_code
is_directory(
Twine const& path,
bool& result);
Return Value
-
True if the path is a directory, false otherwise.
-
status.type() == file_type::directory_file.
-
errc::success if result has been successfully set, otherwise a platform‐specific error_code.
Parameters
Name |
Description |
Path |
Input path. |
status |
A basic_file_status previously returned from status. |
path |
Input path. |
result |
Set to true if path is a directory (after following symlinks, false if it is not. Undefined otherwise. |
Created with MrDocs