I have installed webDAV in my iOS app so that I can take advantage of the listFiles function it supplies. I am using the following code to achieve this:
public struct SimpleAccount: WebDAVAccount {
public var username: String?
public var baseURL: String?
}
let username = "userName"
let password = "password"
let webDav = WebDAV()
let baseURL = "http://ServerName:5005/"
let path = "serverPath"
let account = SimpleAccount(username: username, baseURL: baseURL)
webDav.listFiles(atPath: path, account: account, password: password, caching: .requestEvenIfCached) { files, error in
if let files = files {
print(files)
}
if let error = error {
print(error)
}
}
but I am getting errors. The first error is "An SSL error has occurred and a secure connection to the server cannot be made".
I have tried with https 5006 also without success.
Is the problem with Synology or am I missing something in my code?
Your help would be much appreciated.
I have installed webDAV in my iOS app so that I can take advantage of the listFiles function it supplies. I am using the following code to achieve this:
but I am getting errors. The first error is "An SSL error has occurred and a secure connection to the server cannot be made". I have tried with https 5006 also without success. Is the problem with Synology or am I missing something in my code? Your help would be much appreciated.