public DirectoryDTO AddSubdirectory(string name)
        {
            var dto = new DirectoryDTO(name, this);

            Subdirectories.Add(dto);
            return(dto);
        }
 public DirectoryDTO(string name, DirectoryDTO parent) : base()
 {
     Name           = name;
     Parent         = parent;
     Subdirectories = new List <DirectoryDTO>();
     Files          = new List <FileDTO>();
 }
Exemple #3
0
 public FileDTO(string name, DirectoryDTO directory)
 {
     Name      = name;
     Directory = directory;
 }