Skip to content

Commit

Permalink
uploader.py/listdir_by_creation: list directories only (commaai#30806)
Browse files Browse the repository at this point in the history
list only directories

Co-authored-by: Comma Device <[email protected]>
  • Loading branch information
deanlee and Comma Device authored Dec 27, 2023
1 parent ee3544d commit a1f53c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/loggerd/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_directory_sort(d: str) -> List[str]:

def listdir_by_creation(d: str) -> List[str]:
try:
paths = os.listdir(d)
paths = [f for f in os.listdir(d) if os.path.isdir(os.path.join(d, f))]
paths = sorted(paths, key=get_directory_sort)
return paths
except OSError:
Expand Down

0 comments on commit a1f53c7

Please sign in to comment.