示例#1
0
        private void Env(Action action)
        {
            var path = SIO.Path.Combine(Environment.CurrentDirectory, "FileSystemTest");

            if (SIO.Directory.Exists(path))
            {
                SIO.Directory.Delete(path, true);
            }
            SIO.Directory.CreateDirectory(path);

            var local = new Local(path);

            fileSystem = new CatLib.FileSystem.FileSystem(local);

            action.Invoke();

            if (SIO.Directory.Exists(path))
            {
                SIO.Directory.Delete(path, true);
            }
        }
示例#2
0
 /// <summary>
 /// 文件夹
 /// </summary>
 /// <param name="fileSystem">文件系统</param>
 /// <param name="path">文件夹路径</param>
 public HandlerTest(CatLib.FileSystem.FileSystem fileSystem, string path) :
     base(fileSystem, path)
 {
 }