Open shorabhd opened 8 years ago
First configure your settings after than you have to create session
========= Confifure ==============
var configuration = SessionConfiguration()
configuration.host = FTPHostName
configuration.username = FTPUserName
configuration.password = FTPUserPass
=========== Create session =============
self.session = Session(configuration: configuration)
========== list of all files ===========
session.list("/") { (resources, error) -> Void in print("List directory with result:\n(resources), error: (error)\n\n") }
It is working in Latest version of swift and xCode as well.
Thanks.
i have the same problem, dont know why
@juanjoserodrigolazaro @shorabhd did you find any solution, i have also same issue.
I am getting this error,
nil, error: Optional(Error Domain=kCFErrorDomainCFNetwork Code=200 "(null)" UserInfo={kCFFTPStatusCodeKey=534})
Can you please suggest on how to deal with this?