protected VfsEntity(String name, VfsDirectory parent, string userName = null) { Name = name; Parent = parent; DateCreated = DateTime.Now; UserNameCreated = userName; }
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); } }
protected VfsDirectory(string name, VfsDirectory parent, string userName = null) : base(name, parent, userName) { }
public VfsFile(string name, VfsDirectory parent, string userName = null) : base(name, parent, userName) { }