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