我在我的iOS應用程序中使用SwiftyDropbox
SDK,即時通訊只嘗試列出我的應用程序中的文件夾,然後用戶可以選擇一個文件夾(不是文件)。SwiftyDropbox列表文件夾
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";
}
我怎樣才能找到這個入口是文件夾,它包含子文件夾或不?