Commit 06d71696 authored by Denis Krjuchkov's avatar Denis Krjuchkov

fs/FileSystem.hxx: add CheckAccess without mode parameter

parent 8bf16409
......@@ -149,6 +149,20 @@ CheckAccess(Path path, int mode)
}
/**
* Checks is specified path exists and accessible.
*/
static inline bool
CheckAccess(Path path)
{
#ifdef WIN32
struct stat buf;
return StatFile(path, buf);
#else
return CheckAccess(path, F_OK);
#endif
}
/**
* Checks if #Path exists and is a regular file.
*/
static inline bool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment