Q_MKDIR: use std::filesystem::create_directories

This commit is contained in:
Garux
2021-11-02 22:14:08 +03:00
parent c217ad981a
commit 396fe81cd2
4 changed files with 16 additions and 46 deletions

View File

@@ -28,9 +28,6 @@
#include <cstring>
#include <cstdio>
#include "string/string.h"
#include "os/path.h"
#if defined ( POSIX )
@@ -134,3 +131,11 @@ bool Q_Exec( const char *cmd, char *cmdline, const char *execdir, bool bCreateCo
}
#endif
#include <filesystem>
bool Q_mkdir( const char* path ){
std::error_code err;
std::filesystem::create_directories( path, err );
return !err;
}