uploader.py/listdir_by_creation: list directories only (#30806)

list only directories

Co-authored-by: Comma Device <device@comma.ai>
pull/214/head
Dean Lee 1 year ago committed by GitHub
parent ee3544d283
commit a1f53c70e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      system/loggerd/uploader.py

@ -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:

Loading…
Cancel
Save