Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Create zip directory worker #33

Open
atruskie opened this issue Mar 30, 2016 · 2 comments
Open

Create zip directory worker #33

atruskie opened this issue Mar 30, 2016 · 2 comments

Comments

@atruskie
Copy link
Member

Zip the contents of a input directory and store the results in an output directory. output by default should be Dir.get_path(input) + '.zip'.

Do not include hidden files (those prefixed with a period) in the contents.

Optional recursive option: for input, recurse into each subdirectory up to depth (depth default = 4) and repeat zip operation for that subdirectory. Recursive behaviour should enqueue multiple jobs (each with depth=0).

Example:

/a
/a/b
/a/b/c
/a/b/c/d/e1
/a/b/c/d/e2
/a/b/c/d/e3

Would after all zipping jobs have completed look like:

/a
/.a.zip

/a/b
/a/.b.zip

/a/b/c
/a/b/.c.zip

/a/b/c/d/e1
/a/b/c/d/e2
/a/b/c/d/e3
/a/b/c/.d.zip
@cofiem
Copy link
Contributor

cofiem commented Apr 9, 2016

So each zip file only contains the contents of the folder, not the sub folders?

@atruskie
Copy link
Member Author

atruskie commented Apr 9, 2016

All sub-folders.

That's why constraints will be necessary I think.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants