static bool MkDir(string[] args) { if (args.Length < 1) { Console.WriteLine("Usage: mkdir <dir>"); return(false); } physFS.Mkdir(args[0]); return(true); }
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")); } }