![](/img/trans.png)
[英]How to detect modified files using Dropbox Core Api on Android?
[英]How can I detect the particular given dropbox path is file or not using android core API?
我想检测特定的dropbox
路径是文件还是不使用android core API
这怎么可能? 任何帮助表示赞赏。
该ISDIR现场DropboxAPI.Entry告诉你,如果该条目是一个文件或文件夹。
// Get the metadata for a directory
Entry dirent = mApi.metadata(mPath, 1000, null, true, null);
if (!dirent.isDir || dirent.contents == null) {
// It's not a directory, or there's nothing in it
mErrorMsg = "File or empty directory";
}
还发布DropboxAPI中可用的目录创建和删除方法
mApi.createFolder(directory_path);
mApi.delete(directory_or_file_path);
谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.