Error: (SwiftyDropbox.CallError<SwiftyDropbox.Sharing.CreateSharedLinkWithSettingsError> error 4.)
I've uploaded a file and immediately checked if the file is uploaded or not using
let path = "/test.txt"
client.files.getMetadata(path: path).response(completionHandler: { response, error in
// It actually responded the file exists
then I called the
client.sharing.createSharedLinkWithSettings(path: path) { response, error in
// it throws error SwiftyDropbox.CallError<SwiftyDropbox.Sharing.CreateSharedLinkWithSettingsError> error 4
}
}
I've tried different ways of path expression in createSharedLinkWithSettings
/Apps/MyApp/test.txt
/MyApp/test.txt
/test.txt