-
-
Notifications
You must be signed in to change notification settings - Fork 390
support excluding directories #16
Comments
Sure this is easy, but the purpose of archiver is to mimic your OS's file explorer's "right-click and click Compress" functionality, and I really like the simplicity of its API as-is. Can this be done without changing the function signatures or simple usage? |
I also like the simplicity. And I don't want to pollute that. Seems that there's no way of passing additional options without changing |
Okay. Sorry about that. I'd rather keep the scope of this project narrow. I invite others to create other applications that build on it if they wish! |
Should be possible now after #99 is in. Each archiver will have a configuration struct that could potentially be used to exclude files. |
I'd like to make a PR to exclude certain directories when archiving.
So we just need to pass down a slice of excluded paths to filepath.Walk, then return filepath.SkipDir if the path matches any of the excluded path?
What do you think?
The text was updated successfully, but these errors were encountered: