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)), };
public IReadOnlyList <byte>?GetFileContent(IImmutableList <string> path) => reader.GetFileContent(path);
public byte[] GetFileContent(IImmutableList <string> path) => reader.GetFileContent(path);