{"action":"created","issue":{"url":"https://api.github.com/repos/marmelroy/Zip/issues/3","labels_url":"https://api.github.com/repos/marmelroy/Zip/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/marmelroy/Zip/issues/3/comments","events_url":"https://api.github.com/repos/marmelroy/Zip/issues/3/events","html_url":"https://github.com/marmelroy/Zip/issues/3","id":127973164,"number":3,"title":"Zipping a folder","user":{"login":"Isuru-Nanayakkara","id":2551877,"avatar_url":"https://avatars.githubusercontent.com/u/2551877?v=3","gravatar_id":"","url":"https://api.github.com/users/Isuru-Nanayakkara","html_url":"https://github.com/Isuru-Nanayakkara","followers_url":"https://api.github.com/users/Isuru-Nanayakkara/followers","following_url":"https://api.github.com/users/Isuru-Nanayakkara/following{/other_user}","gists_url":"https://api.github.com/users/Isuru-Nanayakkara/gists{/gist_id}","starred_url":"https://api.github.com/users/Isuru-Nanayakkara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Isuru-Nanayakkara/subscriptions","organizations_url":"https://api.github.com/users/Isuru-Nanayakkara/orgs","repos_url":"https://api.github.com/users/Isuru-Nanayakkara/repos","events_url":"https://api.github.com/users/Isuru-Nanayakkara/events{/privacy}","received_events_url":"https://api.github.com/users/Isuru-Nanayakkara/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-21T17:11:40Z","updated_at":"2016-01-27T05:51:02Z","closed_at":"2016-01-26T23:34:54Z","body":"I tested this this library with zipping a bunch of files *inside* a folder and it works great. However zipping that said folder itself results in a file of a format called CPGZ when it is unzipped.\r\n\r\n![screen shot 2016-01-21 at 9 06 42 am](https://cloud.githubusercontent.com/assets/2551877/12487989/560ffb10-c01e-11e5-9f53-cc1a6a745a4b.png)\r\n\r\nIs zipping a folder not supported or am I doing something wrong? Here's the snippet of code.\r\n\r\n```swift\r\ndo {\r\n    let folderPath = NSBundle.mainBundle().bundleURL.URLByAppendingPathComponent(\"My Images\")\r\n    try Zip.zipFiles([folderPath], zipFilePath: zipPath, password: nil, progress: { progress in\r\n        print(progress)\r\n    })\r\n} catch {\r\n    print(\"Zipping failed :(\")\r\n}\r\n```\r\n\r\nI've uploaded a demo project to Dropbox [here](https://www.dropbox.com/s/f2370yzh7gfvjyv/ZipSwift.zip?dl=0).\r\n"},"comment":{"url":"https://api.github.com/repos/marmelroy/Zip/issues/comments/175415359","html_url":"https://github.com/marmelroy/Zip/issues/3#issuecomment-175415359","issue_url":"https://api.github.com/repos/marmelroy/Zip/issues/3","id":175415359,"user":{"login":"marmelroy","id":889949,"avatar_url":"https://avatars.githubusercontent.com/u/889949?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelroy","html_url":"https://github.com/marmelroy","followers_url":"https://api.github.com/users/marmelroy/followers","following_url":"https://api.github.com/users/marmelroy/following{/other_user}","gists_url":"https://api.github.com/users/marmelroy/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelroy/subscriptions","organizations_url":"https://api.github.com/users/marmelroy/orgs","repos_url":"https://api.github.com/users/marmelroy/repos","events_url":"https://api.github.com/users/marmelroy/events{/privacy}","received_events_url":"https://api.github.com/users/marmelroy/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T05:51:02Z","updated_at":"2016-01-27T05:51:02Z","body":"Released."}}