コード例 #1
0
        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);
        }
コード例 #2
0
 public BasicFile(BasicStorage storage, BasicDirectory parent, FileInfo fileInfo)
 {
     this.storage = storage;
     this.parent  = parent;
     FileInfo     = fileInfo;
 }
コード例 #3
0
 public BasicDirectory(BasicStorage storage, BasicDirectory parent, DirectoryInfo directoryInfo)
 {
     this.storage  = storage;
     this.parent   = parent;
     DirectoryInfo = directoryInfo;
 }