我一直在关注 iOS 平台的 Dropbox教程。我遇到了这行代码到load
一个文件。
[[self restClient] loadFile:dropboxPath intoPath:localPath]
在这一行下方,它有一个描述上述代码的小描述框,其中指出:
Here, srcPath is the path in the user's Dropbox (you probably got this from a metadata object), and destPath is the location on the local device you want the file to be put after it has been downloaded. To find out when the file download either succeeds or fails implement the following DBRestClientDelegate methods:
1)首先,没有srcPath
也没有destPath
. 因此,代码或代码描述已过时/不正确。
2)其次,什么是dropboxPath
?我假设它是我想从 Dropbox 加载的文件。如果是这样,我如何指定我想要的文件?
3) 如果我从 Dropbox 加载一个 .sqlite 文件,我究竟想将该文件加载到哪里?
任何帮助将不胜感激!