Пример #1
0
 public void Delete(SharpFileSystem.FileSystemPath path)
 {
     var pair = Get(path);
     pair.Value.Delete(path.RemoveParent(pair.Key));
 }
Пример #2
0
 protected SharpFileSystem.FileSystemPath RemoveRoot(SharpFileSystem.FileSystemPath path)
 {
     return path.RemoveParent(Root);
 }
Пример #3
0
 public void CreateDirectory(SharpFileSystem.FileSystemPath path)
 {
     var pair = Get(path);
     pair.Value.CreateDirectory(path.RemoveParent(pair.Key));
 }
Пример #4
0
 public Stream OpenFile(SharpFileSystem.FileSystemPath path, FileAccess access)
 {
     var pair = Get(path);
     return pair.Value.OpenFile(path.RemoveParent(pair.Key), access);
 }
Пример #5
0
 public Stream CreateFile(SharpFileSystem.FileSystemPath path)
 {
     var pair = Get(path);
     return pair.Value.CreateFile(path.RemoveParent(pair.Key));
 }
Пример #6
0
 public bool Exists(SharpFileSystem.FileSystemPath path)
 {
     var pair = Get(path);
     return pair.Value.Exists(path.RemoveParent(pair.Key));
 }
Пример #7
0
 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);
 }