mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Common/FileUtil: Add CreateDirs() function as a wrapper around std::filesystem::create_directories().
This commit is contained in:
@ -140,9 +140,12 @@ u64 GetSize(const std::string& path);
|
||||
// Overloaded GetSize, accepts FILE*
|
||||
u64 GetSize(FILE* f);
|
||||
|
||||
// Returns true if successful, or path already exists.
|
||||
// Creates a single directory. Returns true if successful or if the path already exists.
|
||||
bool CreateDir(const std::string& filename);
|
||||
|
||||
// Creates directories recursively. Returns true if successful or if the path already exists.
|
||||
bool CreateDirs(std::string_view filename);
|
||||
|
||||
// Creates the full path to the file given in fullPath.
|
||||
// That is, for path '/a/b/c.bin', creates folders '/a' and '/a/b'.
|
||||
// Returns true if creation is successful or if the path already exists.
|
||||
|
Reference in New Issue
Block a user