Hi all
I'm trying to access a folder outside of my personal root (a team folder).
if let client = DropboxClientsManager.authorizedClient?.withPathRoot(.namespaceId("12345678")) {
// do nothing
print("dropbox connected")
// client.users.getCurrentAccount().response(completionHandler: { user, error in
//
// print(user)
//
// let rootNamespaceId = user?.rootInfo.rootNamespaceId
//
// print(rootNamespaceId)
//
client.files.listFolder(path: "").response(completionHandler: { response, error in
if let result = response {
print(Thread.current)
print(Thread.main)
print(result)
} else if let err = error {
print(err)
}
})
}
I'm getting a «sessionDeinitialized» when I try to get the folder contents.
Without the «withPathRoot» everything works fine.
I get the namespaceId from the user info (the part that's commented out).
What am I doing wrong?
What am I doing wrong?