示例#1
0
 protected VfsEntity(String name, VfsDirectory parent, string userName = null)
 {
     Name            = name;
     Parent          = parent;
     DateCreated     = DateTime.Now;
     UserNameCreated = userName;
 }
示例#2
0
 public IVfsDirectory CreateSubDirectory(string path, string userName)
 {
     if (path.Contains(SeparatorChar))
     {
         var subdir = FindSubDir(path, out string newPath);
         return(subdir.CreateSubDirectory(newPath, userName));
     }
     lock (_entities)
     {
         AssertExists(path);
         var dirCreated = new VfsDirectory(path, this, userName);
         _entities.Add(dirCreated);
         DateModified = DateTime.Now;
         return(dirCreated);
     }
 }
示例#3
0
 protected VfsDirectory(string name, VfsDirectory parent, string userName = null)
     : base(name, parent, userName)
 {
 }
示例#4
0
 public VfsFile(string name, VfsDirectory parent, string userName = null)
     : base(name, parent, userName)
 {
 }