Skip to content

Cannot zip files in subdirectories #84

@sa-spag

Description

@sa-spag

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions