static public IFileStoreWriter WithMappedPath( this IFileStoreWriter originalFileStore, System.Func <IImmutableList <string>, IImmutableList <string> > pathMap) => new DelegatingFileStoreWriter { SetFileContentDelegate = pathAndFileContent => originalFileStore.SetFileContent(pathMap(pathAndFileContent.path), pathAndFileContent.fileContent), AppendFileContentDelegate = pathAndFileContent => originalFileStore.AppendFileContent(pathMap(pathAndFileContent.path), pathAndFileContent.fileContent), DeleteFileDelegate = originalPath => originalFileStore.DeleteFile(pathMap(originalPath)), };
public void DeleteFile(IImmutableList <string> path) => writer.DeleteFile(path);