fixed comparison and download on encrypted files. delete 0kb files after os.rename (may be a bug)
This commit is contained in:
@@ -35,6 +35,7 @@ def launch(localpath,swift_container,prefix,size_limit_reading_os,download,fail_
|
||||
swift_conn = authentication.set_authentication ()
|
||||
swift_conn,objects = utility.get_list(fail_tries,swift_conn,swift_container,prefix)
|
||||
byte0real,byte0manifest,swift_conn,remotefiles,remotefiles_md5 = utility.list_compute_correct_size (fail_tries,objects,swift_conn,swift_container,prefix)
|
||||
remotefiles_encr = utility.list_compute_correct_names_for_enctyption(objects,prefix)
|
||||
|
||||
print ("Files remoti " + str(len(remotefiles)))
|
||||
|
||||
@@ -45,7 +46,7 @@ def launch(localpath,swift_container,prefix,size_limit_reading_os,download,fail_
|
||||
skipped_old_md5_large_files = 0
|
||||
if encrypted and download :
|
||||
import utility_aes
|
||||
for rname in remotefiles.keys():
|
||||
for rname in remotefiles_encr.values():
|
||||
download_file = True
|
||||
for pattern in excluded_patterns:
|
||||
if pattern in rname:
|
||||
|
||||
Reference in New Issue
Block a user