We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public void uploadFolder(String key,File file){ List<File> files = new LinkedList<File>(); listFiles(file, files); int startingPosition = file.getAbsolutePath().length(); for (File file2 : files) { putObject(key+file2.getAbsolutePath() .substring(startingPosition) .replaceAll("\\\\", "/"),file2); } } private void listFiles(File dir, List<File> results) { File[] found = dir.listFiles(); if ( found != null ) { for ( File f : found ) { if (f.isDirectory()) { listFiles(f, results); } else { results.add(f); } } } }
The text was updated successfully, but these errors were encountered:
感谢您的反馈。目前上不支持,上传文件夹放到SDK里面不合适,一致性无法保证。作为示例放到sample里面。
Sorry, something went wrong.
那是否可以理解为 暂不支持批量上传多个文件?
No branches or pull requests
The text was updated successfully, but these errors were encountered: