Inheritance: FileSystemNode
Example #1
0
 protected FileSystemNode(FolderNode parent, string name)
 {
     Parent = parent;
     Name = name;
     if (Parent != null)
     {
         Parent.AddChild(this);
     }
     TouchLastWriteTime();
     TouchLastAccessTime();
     TouchCreationTime();
 }
Example #2
0
 internal void Move(FileSystemNode source, FolderNode destParentNode, string destName)
 {
     Children.Remove(source);
     source.Name = destName;
     destParentNode.AddChild(source);
 }
Example #3
0
 private FolderNode(FolderNode parent, string name)
     : base(parent, name)
 {
     Children = new List<FileSystemNode>();
 }
Example #4
0
 public void MoveTo(FolderNode destParentNode, string destName)
 {
     Parent.Move(this, destParentNode, destName);
 }