FHU: Avoid calling faccessat on WIN32

This commit is contained in:
Billy Laws committed 2023-07-21 22:21:15 +01:00
1 parent 82295b2943
commit a7ac4fa6e4
1 file changed
+2
@@ -33,9 +33,11 @@ namespace FHU::Filesystem {
return access(Path.c_str(), F_OK) == 0;
}
#ifndef _WIN32
inline bool ExistsAt(int FD, const fextl::string &Path) {
return faccessat(FD, Path.c_str(), F_OK, 0) == 0;
}
#endif
enum class CreateDirectoryResult {
CREATED,