From 8df2007b1a0fe7dbe11f8dca1f07ba4abe5a21d4 Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Wed, 11 Aug 2021 14:46:42 -0700 Subject: [PATCH] Fix bug in FileSystemServiceObjectAdapter.DoCreateDirectory --- src/LibHac/Fs/Impl/FileSystemServiceObjectAdapter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LibHac/Fs/Impl/FileSystemServiceObjectAdapter.cs b/src/LibHac/Fs/Impl/FileSystemServiceObjectAdapter.cs index 15627179..9b599187 100644 --- a/src/LibHac/Fs/Impl/FileSystemServiceObjectAdapter.cs +++ b/src/LibHac/Fs/Impl/FileSystemServiceObjectAdapter.cs @@ -44,7 +44,7 @@ namespace LibHac.Fs.Impl Result rc = GetPathForServiceObject(out Path sfPath, path); if (rc.IsFailure()) return rc; - return BaseFs.Target.DeleteFile(in sfPath); + return BaseFs.Target.CreateDirectory(in sfPath); } protected override Result DoDeleteDirectory(U8Span path)