diff --git a/src/LibHac/FsSystem/LocalFileSystem.cs b/src/LibHac/FsSystem/LocalFileSystem.cs index a6372069..f9a98c8e 100644 --- a/src/LibHac/FsSystem/LocalFileSystem.cs +++ b/src/LibHac/FsSystem/LocalFileSystem.cs @@ -21,6 +21,11 @@ namespace LibHac.FsSystem if (!Directory.Exists(BasePath)) { + if (File.Exists(BasePath)) + { + throw new DirectoryNotFoundException($"The specified path is a file. ({basePath})"); + } + Directory.CreateDirectory(BasePath); } }