     }
     
     func testList() {
-        session.list("/") {
+        self.session.list("/") {
             (resources, error) -> Void in
             print("List directory with result:\n\(resources), error: \(error)\n\n")
         }

    func testUpload() {
        if let URL = NSBundle.mainBundle().URLForResource("TestUpload", withExtension: "png") {
            let path = "/upload/\(NSUUID().UUIDString).png"
            session.upload(URL, path: path) {
                (result, error) -> Void in
                print("Upload file with result:\n\(result), error: \(error)\n\n")
            }

            
            var configuration = SessionConfiguration()
            configuration.host = "ftp://speedtest.tele2.net"
            self.session = Session(configuration: configuration)
            
            testList()
            //testDownload()
