Commit 7e9b139d authored by Roy Marmelstein's avatar Roy Marmelstein

Updating example to support newer syntax

parent 567b97b2
...@@ -139,7 +139,7 @@ class FileBrowser: UIViewController, UITableViewDataSource, UITableViewDelegate ...@@ -139,7 +139,7 @@ class FileBrowser: UIViewController, UITableViewDataSource, UITableViewDelegate
let filePath = selectedFiles.first let filePath = selectedFiles.first
let pathURL = path!.URLByAppendingPathComponent(filePath!) let pathURL = path!.URLByAppendingPathComponent(filePath!)
do { do {
try Zip().quickUnzipFile(pathURL) try Zip.quickUnzipFile(pathURL)
self.selectedFiles.removeAll() self.selectedFiles.removeAll()
updateSelection() updateSelection()
updateFiles() updateFiles()
...@@ -154,7 +154,7 @@ class FileBrowser: UIViewController, UITableViewDataSource, UITableViewDelegate ...@@ -154,7 +154,7 @@ class FileBrowser: UIViewController, UITableViewDataSource, UITableViewDelegate
urlPaths.append(path!.URLByAppendingPathComponent(filePath)) urlPaths.append(path!.URLByAppendingPathComponent(filePath))
} }
do { do {
try Zip().quickZipFiles(urlPaths, fileName: "Archive") try Zip.quickZipFiles(urlPaths, fileName: "Archive")
self.selectedFiles.removeAll() self.selectedFiles.removeAll()
updateSelection() updateSelection()
updateFiles() updateFiles()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment