public override void DeleteDirectory(Directory directory) { if (!directory.Parent.Equals(this)) { throw new ArgumentException("The specified directory could not be found"); } BasicDirectory basicDirectory = directory as BasicDirectory; basicDirectory.DirectoryInfo.Delete(true); }
public BasicFile(BasicStorage storage, BasicDirectory parent, FileInfo fileInfo) { this.storage = storage; this.parent = parent; FileInfo = fileInfo; }
public BasicDirectory(BasicStorage storage, BasicDirectory parent, DirectoryInfo directoryInfo) { this.storage = storage; this.parent = parent; DirectoryInfo = directoryInfo; }