public VerifiedFile(FileInfo file) { _file = file; if (!_file.Exists) { throw new FileNotFoundException($"Could not find the file {file.FullName}"); } Directory = new VerifiedFolder(file.Directory); }
public VerifiedFolder(DirectoryInfo path) { _directory = path; if (!_directory.Exists) { throw new FileNotFoundException($"Unable to find the path {path}"); } if (_directory.Parent != null) { Parent = new VerifiedFolder(_directory.Parent); } }