Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions upload_to_drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def folder_upload(service):

parents_id = {}

for root, _, files in os.walk(FULL_PATH, topdown=True):
for root, _, files in os.walk(FULL_PATH, topdown=True, followlinks=True):
last_dir = root.split('/')[-1]
pre_last_dir = root.split('/')[-2]
if pre_last_dir not in parents_id.keys():
Expand Down Expand Up @@ -240,7 +240,7 @@ def main():
root_len = len(full_path.split(os.path.sep)[0:-2])

# Get list of folders three paths on computer
for root, dirs, files in os.walk(full_path, topdown=True):
for root, dirs, files in os.walk(full_path, topdown=True, followlinks=True):
for name in dirs:
var_path = (os.path.sep).join(
root.split(os.path.sep)[root_len + 1:])
Expand Down