Files
sunnypilot/selfdrive/loggerd/tools/mark_unuploaded.py
Adeeb Shihadeh fb1c3b0d5d common: replace custom xattr implementation with os module's (#24448)
* use os module's xattr function

* fix that

* handle in helper
old-commit-hash: 81dacbedca
2022-05-15 17:13:50 -07:00

9 lines
191 B
Python
Executable File

#!/usr/bin/env python3
import os
import sys
from selfdrive.loggerd.uploader import UPLOAD_ATTR_NAME
for fn in sys.argv[1:]:
print(f"unmarking {fn}")
os.removexattr(fn, UPLOAD_ATTR_NAME)