public IFile Create(PathPart name) { FakeFile file; if (!this.fakeFiles.TryGetValue(name, out file)) { file = new FakeFile(this.root.Combine(name)); this.fakeFiles.Add(name, file); } return(file); }
public FullPath Combine(PathPart name) => new FullPath(Path.Combine(this.path, name.ToString()));
public IFile CreateFile(PathPart name) => RealFile.Create(this.Path.Combine(name));
public IFile CreateFile(PathPart name) => this.fakeFiles.Create(name);
public bool Matches(PathPart path) => this.regex.IsMatch(path.ToString());