Repository navigation
feat: extract() archives from local paths, URLs and S3 - #102
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without dest, extract() uses a temporary directory deleted at exit; it returns the directory either way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r a valid type Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
muffato
reviewed
Nov 12, 2026
…w fs cp Drops curl: nextflow fs cp reads http(s), ftp and cloud URLs, and fails on HTTP errors and truncated transfers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… fs cp Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
muffato
approved these changes
Nov 12, 2026
prototaxites
approved these changes
Nov 12, 2026
prototaxites
left a comment
Contributor
There was a problem hiding this comment.
Approving for @muffato
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rename
curlAndExtract()toextract()and let it read local paths and any URL Nextflow can read, so module tests can extract test data fromparams.modules_testdata_base_path, local or remote, instead of running anUNZIPsetup process.extract(source, extractDir: ..., compression: ...): both named arguments optional, unknown ones throw; withoutextractDirit extracts into a temporary directory deleted when nf-test exits; returns the extraction directoryfile://URLs are extracted in place; other URLs (http(s),ftp,s3, ...) are downloaded withnextflow fs cpinstead ofcurl, to a temporary file deleted once extractedcurlAndExtract(): deprecated alias inMethodsthat prints a warning (used by nf-core/taxprofiler)ArchiveDownloaderrenamedArchiveExtractor;extractCommand()builds theunzip/tarcommand, andtarreads the archive with-finstead of stdin, so a missing local file fails with "Failed to extract" for both formatsdownloadFromS3()reports failures through the samerunOrThrow()asextract()NfCoreUtils.deleteDirectory()moved toUtilsfor the temporary directory cleanuptests/curlAndExtractrenamedtests/extract, with local path, S3 and default temporary directory cases; unit tests for local paths,file://URLs, the default directory, named and unknown optionsdocs/usage.md,README.md,CHANGELOG.mdupdatedTested:
mise run validate(40 unit tests, 0 Checkstyle violations;tests/extractandtests/getAllFilesFromPathnf-tests).🤖 Generated with Claude Code