Example #1
0
 static public IFileStoreReader WithMappedPath(
     this IFileStoreReader originalFileStore, System.Func <IImmutableList <string>, IImmutableList <string> > pathMap) =>
 new DelegatingFileStoreReader
 {
     GetFileContentDelegate       = originalPath => originalFileStore.GetFileContent(pathMap(originalPath)),
     ListFilesInDirectoryDelegate = originalPath => originalFileStore.ListFilesInDirectory(pathMap(originalPath)),
 };
Example #2
0
 public IReadOnlyList <byte>?GetFileContent(IImmutableList <string> path) =>
 reader.GetFileContent(path);
Example #3
0
 public byte[] GetFileContent(IImmutableList <string> path) =>
 reader.GetFileContent(path);