我在我的 iOS 应用程序中使用SwiftyDropbox
SDK,我试图仅在我的应用程序中列出文件夹,然后用户可以选择一个文件夹(不是文件)。
在ViewController
=> viewDidLoad
override func viewDidLoad() {
super.viewDidLoad()
guard let dropboxClient = DropboxClientsManager.authorizedClient else{
return
}
let listFolders = dropboxClient.files.listFolder(path: "")
listFolders.response{ response, error in
guard let result = response else{
return
}
for entry in result.entries{
print(entry)
}
}
// Do any additional setup after loading the view, typically from a nib.
}
条目是 >
{
id = "id:0GMPvYwuVEAAAAAAAAAABw";
name = "Folder A";
"path_display" = "/Folder A";
"path_lower" = "/folder a";
}
我怎样才能找到这个条目是文件夹,它是否包含子文件夹?