We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3141719 commit b3fa50aCopy full SHA for b3fa50a
+gemini3d/+fileio/extract_zstd.m
@@ -1,10 +1,18 @@
1
function extract_zstd(archive, out_dir)
2
% extract a zstd file "archive" to "out_dir"
3
+% out_dir need not exist yet, but its parent must
4
+% we do this in two steps to be reliable with old tar versions
5
+% https://www.scivision.dev/tar-extract-zstd
6
-if ~isfile(archive)
- error("%s is not a file", archive)
7
+arguments
8
+ archive (1,1) string
9
+ out_dir (1,1) string
10
end
11
12
+archive = gemini3d.fileio.expanduser(archive);
13
+
14
+assert(isfile(archive), "%s is not a file", archive)
15
16
[ret, ~] = system("zstd -h");
17
if ret ~= 0
18
if ismac
0 commit comments