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