Hey there 😃
Calling ziputil.ZipDir("path/to/file", "path/to/zip", false) produces the /usr/bin/zip -rTy path/to/zip file command which ultimately fails with zip I/O error: No such file or directory as file does not exist but path/to/file does.
Indeed, this happens:
|
zipTarget := filepath.Base(sourceDirPth) |
Before opening a pull request I wanted to know if there was any reason behind this implementation.
Thanks!
Hey there 😃
Calling
ziputil.ZipDir("path/to/file", "path/to/zip", false)produces the/usr/bin/zip -rTy path/to/zip filecommand which ultimately fails withzip I/O error: No such file or directoryasfiledoes not exist butpath/to/filedoes.Indeed, this happens:
go-utils/ziputil/ziputil.go
Line 24 in 2a09aab
Before opening a pull request I wanted to know if there was any reason behind this implementation.
Thanks!