コード例 #1
0
ファイル: FileSystemMounter.cs プロジェクト: HaKDMoDz/eStd
 public void Delete(SharpFileSystem.FileSystemPath path)
 {
     var pair = Get(path);
     pair.Value.Delete(path.RemoveParent(pair.Key));
 }
コード例 #2
0
ファイル: SubFileSystem.cs プロジェクト: HaKDMoDz/eStd
 protected SharpFileSystem.FileSystemPath RemoveRoot(SharpFileSystem.FileSystemPath path)
 {
     return path.RemoveParent(Root);
 }
コード例 #3
0
ファイル: FileSystemMounter.cs プロジェクト: HaKDMoDz/eStd
 public void CreateDirectory(SharpFileSystem.FileSystemPath path)
 {
     var pair = Get(path);
     pair.Value.CreateDirectory(path.RemoveParent(pair.Key));
 }
コード例 #4
0
ファイル: FileSystemMounter.cs プロジェクト: HaKDMoDz/eStd
 public Stream OpenFile(SharpFileSystem.FileSystemPath path, FileAccess access)
 {
     var pair = Get(path);
     return pair.Value.OpenFile(path.RemoveParent(pair.Key), access);
 }
コード例 #5
0
ファイル: FileSystemMounter.cs プロジェクト: HaKDMoDz/eStd
 public Stream CreateFile(SharpFileSystem.FileSystemPath path)
 {
     var pair = Get(path);
     return pair.Value.CreateFile(path.RemoveParent(pair.Key));
 }
コード例 #6
0
ファイル: FileSystemMounter.cs プロジェクト: HaKDMoDz/eStd
 public bool Exists(SharpFileSystem.FileSystemPath path)
 {
     var pair = Get(path);
     return pair.Value.Exists(path.RemoveParent(pair.Key));
 }
コード例 #7
0
ファイル: FileSystemMounter.cs プロジェクト: HaKDMoDz/eStd
 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);
 }