Exemplo n.º 1
0
        public VerifiedFile(FileInfo file)
        {
            _file = file;
            if (!_file.Exists)
            {
                throw new FileNotFoundException($"Could not find the file {file.FullName}");
            }

            Directory = new VerifiedFolder(file.Directory);
        }
Exemplo n.º 2
0
        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);
            }
        }