Zip
Zip copied to clipboard
zip filehandler does not like directories with spaces
It's a small point but I was getting failures on the fileHandler completionblock because I had spaces in the folder name. It was an easy fix.
if let fileHandler = fileOutputHandler, let fileUrl = URL(string: fullPath.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)!) { fileHandler(fileUrl) } it might be nice to include that in future revisions.