mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-21 01:23:54 +08:00
* use caching for getxattr
* fix some git issues
* Scheduled network checks
* attempt optimization
* Delete speed_test.py
* Style fixes
* Fix styling
* fix spaces
* fix spaces
* fix naming
* Update uploader.py
* Update mark_all_uploaded.py
* Add file to release
* Update selfdrive/loggerd/tools/mark_all_uploaded.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: cf46de13d2
10 lines
325 B
Python
10 lines
325 B
Python
import os
|
|
from common.xattr import setxattr
|
|
from selfdrive.loggerd.uploader import UPLOAD_ATTR_NAME, UPLOAD_ATTR_VALUE
|
|
|
|
from selfdrive.loggerd.config import ROOT
|
|
for folder in os.walk(ROOT):
|
|
for file1 in folder[2]:
|
|
full_path = os.path.join(folder[0], file1)
|
|
setxattr(full_path, UPLOAD_ATTR_NAME, UPLOAD_ATTR_VALUE)
|