# HG changeset patch
# User imgteam
# Date 1759745821 0
# Node ID 28d6129b29010b7cfaf3ca1e381da095ee491ba8
# Parent 4634764e6e2b797784370c500a53663f8b1593d6
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/unzip/ commit 76ea79c003386720807ac7a4f01da9248856cc5c
diff -r 4634764e6e2b -r 28d6129b2901 creators.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/creators.xml Mon Oct 06 10:17:01 2025 +0000
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -r 4634764e6e2b -r 28d6129b2901 test-data/input_with_dotfiles.zip
Binary file test-data/input_with_dotfiles.zip has changed
diff -r 4634764e6e2b -r 28d6129b2901 unzip.xml
--- a/unzip.xml Fri Sep 26 09:16:40 2025 +0000
+++ b/unzip.xml Mon Oct 06 10:17:01 2025 +0000
@@ -1,20 +1,41 @@
Unzip a file
+ creators.xml
6.0
- 1
+ 2
22.01
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- unzip
- tar
+
+ quay.io/biocontainers/mulled-v2-6a2891161dcf5f35b38c6a49fff923163de7a66d:159a5b483a078f27b97a401b0626abac09e5f2d1-0
out.data
#else
'$input_file' -d out/
@@ -22,7 +43,7 @@
#end if
#if $input_file.is_of_type("tar"):
tar
- #if $extract_options['extract_all'] == 'False'
+ #if $extract_options['target'] == 'single'
xfO '$input_file' '$extract_options["pathtofile"]' > out.data
#else
-xf '$input_file' -C ./out/
@@ -30,21 +51,42 @@
#end if
&&
+ ## Filter out files that do not match the regex
+ #if $extract_options['target'] != 'single'
+ pushd out &&
+ find . -regextype posix-extended -type f -not -regex '$extract_options["keep_regex"]' -delete &&
+ popd &&
+ #end if
+
## Flatten any potential directory structure, e.g.
## out/sub1/subsub2/fileA.ext -> out/sub1_subsub2_fileA.ext
find out -type f | cut -d '/' -f 2- | grep '/' | xargs -I % sh -c "mv out/% out/\\$(echo % | tr / _)"
]]>
-
+
-
-
-
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
'..' not in value
',' not in value
'*' not in value
@@ -55,18 +97,18 @@
- extract_options['extract_all'] == 'False'
+ extract_options['target'] == 'single'
- extract_options['extract_all'] == 'True'
+ extract_options['target'] != 'single'
-
+
@@ -74,7 +116,7 @@
-
+
@@ -85,7 +127,7 @@
-
+
@@ -96,7 +138,7 @@
-
+
@@ -108,7 +150,7 @@
-
+
@@ -116,13 +158,72 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
**What it does**