04-13-2020, 03:52 PM
Hi!
Sorry i have not tested this on my side.
So here is more correct:
Sorry i have not tested this on my side.
So here is more correct:
Code:
files = input['files']
for fl in files:
file_name = fl['file_name']
checkin_dir = fl['checkin_dir']
relative_dir = fl['relative_dir']
checked_in_full_path = u'{0}/{1}'.format(checkin_dir, file_name)
new_location = 'D:/new_repo'
file_goes_to = u'{0}/{1}/{2}'.format(new_location, relative_dir, file_name)
shutil.copy(checked_in_full_path , file_goes_to)