public void Delete(SharpFileSystem.FileSystemPath path) { var pair = Get(path); pair.Value.Delete(path.RemoveParent(pair.Key)); }
protected SharpFileSystem.FileSystemPath RemoveRoot(SharpFileSystem.FileSystemPath path) { return path.RemoveParent(Root); }
public void CreateDirectory(SharpFileSystem.FileSystemPath path) { var pair = Get(path); pair.Value.CreateDirectory(path.RemoveParent(pair.Key)); }
public Stream OpenFile(SharpFileSystem.FileSystemPath path, FileAccess access) { var pair = Get(path); return pair.Value.OpenFile(path.RemoveParent(pair.Key), access); }
public Stream CreateFile(SharpFileSystem.FileSystemPath path) { var pair = Get(path); return pair.Value.CreateFile(path.RemoveParent(pair.Key)); }
public bool Exists(SharpFileSystem.FileSystemPath path) { var pair = Get(path); return pair.Value.Exists(path.RemoveParent(pair.Key)); }
public ICollection<SharpFileSystem.FileSystemPath> GetEntities(SharpFileSystem.FileSystemPath path) { var pair = Get(path); var entities = pair.Value.GetEntities(path.IsRoot ? path : path.RemoveParent(pair.Key)); return new EnumerableCollection<SharpFileSystem.FileSystemPath>(entities.Select(p => pair.Key.AppendPath(p)), entities.Count); }