Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Zip output path set to non-existing directory casues failure #61

Closed
kevlut opened this issue Mar 22, 2018 · 1 comment · Fixed by #99
Closed

Zip output path set to non-existing directory casues failure #61

kevlut opened this issue Mar 22, 2018 · 1 comment · Fixed by #99
Assignees
Milestone

Comments

@kevlut
Copy link

kevlut commented Mar 22, 2018

This may be able to be a non-issue, but I was expecting that when I passed a directory location that did not yet exist, the directory would get created and the zip would still get output to that path.

err := archiver.Zip.Make(outputPath, files)

Instead, it returns an error:

error creating [outputPath]: open [outputPath]: The system cannot find the path specified.

I created the output directory structure and the previous code worked fine.

When zipping using a desktop application, you can provide an nonexisting output path and the directories will be created for you. So, who should be the owner of creating the directories?

I'm on Win10 x64

@kevlut kevlut changed the title Zip output path set to non-existing directory fails Zip output path set to non-existing directory casues failure Mar 22, 2018
@johnarok johnarok self-assigned this Sep 12, 2018
@mholt mholt self-assigned this Nov 6, 2018
@mholt mholt added this to the 3.0 milestone Nov 6, 2018
@mholt
Copy link
Owner

mholt commented Nov 6, 2018

This is implemented in #99.

@mholt mholt mentioned this issue Nov 7, 2018
15 tasks
@mholt mholt closed this as completed in #99 Nov 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants