File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ class MyStr(str):
2626
2727def upload_files (file_array ):
2828 for file in file_array :
29+ print ("Uploading " + file )
2930 file_path = pathlib .Path (file ).resolve ()
3031 s3_key = file_path .relative_to (BASE_DIR ).as_posix ()
3132 content_type = ''
@@ -40,10 +41,10 @@ def upload_files(file_array):
4041
4142# Handle uploading files in directories and subdirectories
4243def upload_files_from_dir (path ):
43- for subdir , dirs , files in os .walk (BASE_DIR / path ):
44+ for subdir , dirs , files in os .walk (path ):
4445 for file in files :
46+ print ("Uploading " + file )
4547 full_file_path = os .path .join (subdir , file )
46- full_file_path = pathlib .Path (subdir ) / file
4748 full_file_path = pathlib .PureWindowsPath (full_file_path ).as_posix ()
4849 content_type = ''
4950 match MyStr (full_file_path ):
You can’t perform that action at this time.
0 commit comments