Android 如何将目录的整个文件夹上载到Dropbox API?

Android 如何将目录的整个文件夹上载到Dropbox API?,android,dropbox-api,Android,Dropbox Api,如何使用Dropbox API将整个图像文件夹(在特定目录中)上载到Dropbox 在示例代码中,它上载了具有相同文件名的特定文件,但是,我根据拍摄时间保存了图像文件名,因此,我无法上载任何保存的文件 我尝试使用: File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM); String imageFileName = "Pictures" + date.toString()+ ".

如何使用Dropbox API将整个图像文件夹(在特定目录中)上载到Dropbox

在示例代码中,它上载了具有相同文件名的特定文件,但是,我根据拍摄时间保存了图像文件名,因此,我无法上载任何保存的文件

我尝试使用:

File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM);
String imageFileName = "Pictures" + date.toString()+ ".jpg";
File file = new File(path+File.separator, imageFileName);
但当我尝试上传时,没有找到任何文件