Skip to content

Commit

Permalink
Update interactive_upload.py
Browse files Browse the repository at this point in the history
Delete code duplication for listing the files in the directory.
  • Loading branch information
albags committed Jul 22, 2024
1 parent d54c5fb commit e2dba3e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions interactive_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ def display_menu():
break
print("Invalid directory. Please try again.")

files = [
os.path.join(directory_path, f)
for f in os.listdir(directory_path)
if os.path.isfile(os.path.join(directory_path, f))
]
directory_path = pathlib.Path(directory_path)
files = list(directory_path.rglob(f"*{extension}"))

Expand Down

0 comments on commit e2dba3e

Please sign in to comment.