This commit is contained in:
2022-02-15 13:42:40 +08:00
parent 0c8dba0a0a
commit a64c19d111
4 changed files with 39 additions and 0 deletions

View File

@@ -70,6 +70,13 @@ int fileop_isdir(const char* path, int* result) {
return r ? 1 : 0;
}
#if _WIN32
int fileop_isdrive(const char* path) {
if (!path) return 0;
return fileop::isdrive(path) ? 1 : 0;
}
#endif
int fileop_mkdir(const char* path, int mode) {
if (!path) return 0;
return fileop::mkdir(path, mode) ? 1 : 0;