Force append slash to directory path in OsFilesystem::CreateDirectory

The recursive path creation algorithm requires this to be the case
This commit is contained in:
Billy Laws 2022-06-04 17:44:49 +01:00
parent 616f7b7826
commit d79832091d

View File

@ -39,7 +39,7 @@ namespace skyline::vfs {
}
bool OsFileSystem::CreateDirectoryImpl(const std::string &path, bool parents) {
auto fullPath{basePath + path};
auto fullPath{basePath + path + "/"};
if (!parents) {
int ret{mkdir(fullPath.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH)};