Skip to content

Commit b701a92

Browse files
committed
Fix update-website.py
1 parent d467548 commit b701a92

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

py/update-website.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class MyStr(str):
2626

2727
def 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
4243
def 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):

0 commit comments

Comments
 (0)