zipped deck works

Can we refactor this into a separate function that given a deck object returns the associated folder name, or perhaps a dictionary with the folder name and all relevant paths that? I have a feeling this code is repeated elsewhere, so this might be an opportunity to fix that.