Hi, thanks so much this was extremely helpful! My only question is, in this block of code:
Looping through the files inside the source directory
for root, dirs, files in os.walk(cognos_reports_source):
for file_name in files:
file_path = os.path.join(root,file_name)
file_size = os.stat(file_path).st_size
file_data = open(file_path, 'rb')
Hi, thanks so much this was extremely helpful! My only question is, in this block of code:
Looping through the files inside the source directory
for root, dirs, files in os.walk(cognos_reports_source):
for file_name in files:
file_path = os.path.join(root,file_name)
file_size = os.stat(file_path).st_size
file_data = open(file_path, 'rb')
What is cognos_reports_source?
Cheers
its the directory that holds the files you wish to upload