Incorrect behavior while download files from external resources - done, part 1 (fix for
@@ -37,6 +37,8 @@ def upload_data(src, dst, f_name_format, c_name, c_type, create_folders, entity_
dst = dst + c_name + '/' + f_name_format
else:
dst = dst + f_name_format.format(c_name)
+ elif f_name_format is None and c_name is not None and create_folders:
+ dst = dst + c_name + '/' + src.split('/')[-1:][0]
else:
dst = dst + src.split('/')[-1:][0]
