Skip to content
This repository has been archived by the owner on Nov 4, 2018. It is now read-only.

Commit

Permalink
Update FileLists.py
Browse files Browse the repository at this point in the history
fixed bug for find("-") comparison logic as -1 was being evaluated to true in all cases
  • Loading branch information
macgyver13 authored and mdomsch committed Nov 26, 2013
1 parent e673a86 commit 2a26f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S3/FileLists.py
Expand Up @@ -367,7 +367,7 @@ def _get_filelist_remote(remote_uri, recursive = True):
'dev' : None,
'inode' : None,
}
if rem_list[key]['md5'].find("-"): # always get it for multipart uploads
if rem_list[key]['md5'].find("-") > 0: # always get it for multipart uploads
_get_remote_attribs(S3Uri(object_uri_str), rem_list[key])
md5 = rem_list[key]['md5']
rem_list.record_md5(key, md5)
Expand Down

0 comments on commit 2a26f6e

Please sign in to comment.