Example #1
0
File: Cwd.cs Project: vuuvv/zecms
 public Cwd(System.IO.DirectoryInfo dir)
 {
     this.date = dir.LastWriteTime.ToShortDateString();
     this.name = dir.Name;
     this.read = this.write = this.rm = true;
     this.hash = dir.FullName.Hash();
     this.size = 10;
     this.rel = dir.PathFromRoot();
 }
Example #2
0
File: Cdc.cs Project: vuuvv/zecms
 public Cdc(System.IO.DirectoryInfo dir)
 {
     this.date = dir.LastWriteTime.ToShortDateString();
     this.name = dir.Name;
     this.read = this.write = this.rm = true;
     this.mime = "directory";
     this.size = dir.Size();
     this.hash = dir.FullName.Hash();
     this.url = "/" + dir.PathFromRoot().Replace(@"\", "/");
 }