From d79832091d6cdf4256519404d3ff48b6c147871e Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sat, 4 Jun 2022 17:44:49 +0100 Subject: [PATCH] Force append slash to directory path in OsFilesystem::CreateDirectory The recursive path creation algorithm requires this to be the case --- app/src/main/cpp/skyline/vfs/os_filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/vfs/os_filesystem.cpp b/app/src/main/cpp/skyline/vfs/os_filesystem.cpp index 8550727f..db40042a 100644 --- a/app/src/main/cpp/skyline/vfs/os_filesystem.cpp +++ b/app/src/main/cpp/skyline/vfs/os_filesystem.cpp @@ -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)};