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 65dd930 commit ac4c6ccCopy full SHA for ac4c6cc
storage/framework/core/storage/src/zip.ts
@@ -6,12 +6,15 @@ interface ZipOptions {
6
}
7
8
export async function zip(from: string | string[], to?: string, options?: ZipOptions) {
9
+ console.log('zip 1', from, to, options)
10
const toPath = to || 'archive.zip'
11
const fromPath = Array.isArray(from) ? from.join(' ') : from
12
13
+ console.log('zip 2', fromPath, toPath)
14
if (Array.isArray(from))
15
return runCommand(`zip -r ${toPath} ${fromPath}`, options)
16
17
+ console.log('zip 3', fromPath, toPath)
18
return runCommand(`zip -r ${to} ${from}`, options)
19
20
0 commit comments