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
 static public IEnumerable <IImmutableList <string> > ListFiles(this IFileStoreReader fileStore) =>
 fileStore.ListFilesInDirectory(ImmutableList <string> .Empty);
Example #3
0
 public IEnumerable <IImmutableList <string> > ListFilesInDirectory(IImmutableList <string> directoryPath) =>
 reader.ListFilesInDirectory(directoryPath);