* use os module's xattr function * fix that * handle in helper old-commit-hash: 81dacbedcacaf9db43d19700e04e7361c0fbbbcc
9 lines
294 B
Python
9 lines
294 B
Python
import os
|
|
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)
|
|
os.setxattr(full_path, UPLOAD_ATTR_NAME, UPLOAD_ATTR_VALUE)
|