             self.createDirectory(directory)
             return directory.appendingPathComponent("content.json")
         }).response { response, error in
-            if let e = error { print(e) }
-            self.importDownloadedFile(contentPath)
+            if let e = error {
+                print(e)
+            } else {
+                self.importDownloadedFile(contentPath)
+            }
             self.downloadFiles()
         }
     }

        }
        let path = directoryFor(nextMetaPath).appendingPathComponent("meta.json")

        let json = JSON(data: dataForFile(path))

        // Check if the "type" in the json matches the type we're syncing.
        //

    
    private func importDownloadedFile(_ pathString: String) {
        let path = directoryFor(pathString).appendingPathComponent("content.json")
        guard let data = dataForFile(path) else {
            return
        }
        
        syncableType.syncableDeserialize(data)
    }
    
