addressing windows issues
This commit is contained in:
@@ -56,5 +56,10 @@ namespace anm2ed::util::filesystem
|
||||
std::filesystem::current_path(path);
|
||||
}
|
||||
|
||||
WorkingDirectory::WorkingDirectory(const std::filesystem::path& path, bool isFile)
|
||||
: WorkingDirectory(path.string(), isFile)
|
||||
{
|
||||
}
|
||||
|
||||
WorkingDirectory::~WorkingDirectory() { std::filesystem::current_path(previous); }
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ namespace anm2ed::util::filesystem
|
||||
std::filesystem::path previous;
|
||||
|
||||
WorkingDirectory(const std::string&, bool = false);
|
||||
WorkingDirectory(const std::filesystem::path&, bool = false);
|
||||
~WorkingDirectory();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user