public void DirectoryManipulation() { using var pfs = new PhysFS(""); pfs.SetWriteDir("./"); pfs.GetWriteDir().Should().Be("./"); pfs.CreateDirectory("hello"); Directory.Exists("./hello").Should().BeTrue(); pfs.Delete("hello"); Directory.Exists("./hello").Should().BeFalse(); }
void DirectoryManipulation() { using (var pfs = new PhysFS("")) { pfs.SetWriteDir("./"); Assert.Equal("./", pfs.GetWriteDir()); pfs.Mkdir("hello"); Assert.True(Directory.Exists("./hello")); pfs.Delete("hello"); Assert.False(Directory.Exists("./hello")); } }
static bool GetWriteDirectory(string[] args) { Console.WriteLine(physFS.GetWriteDir()); return(true); }