Skip to content

Commit

Permalink
Adds more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzj committed Feb 28, 2013
1 parent d7f5d1d commit 334ebcd
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -733,9 +733,9 @@ public MultipleFileUpload uploadDirectory(String bucketName, String virtualDirec
* null or empty string to upload files to the root of the
* bucket.
* @param directory
* The common parent directory of fileList to upload. The keys
* of the files in the fileList are constructed relative to this
* directory.
* The common parent directory of files to upload. The keys
* of the files in the list of files are constructed relative to
* this directory.
* @param files
* A list of files to upload. The keys of the files are
* calculated relative to the commonParentDirectory and the
Expand Down Expand Up @@ -770,6 +770,7 @@ public MultipleFileUpload uploadFileList(String bucketName, String virtualDirect

long totalSize = 0;
for (File f : files) {
//Check, if file, since only files can be uploaded.
if (f.isFile()) {
totalSize += f.length();
String key = f.getAbsolutePath().substring(directory.getAbsolutePath().length() + 1)
Expand Down

0 comments on commit 334ebcd

Please sign in to comment.