mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 20:03:53 +08:00
9 lines
288 B
Python
9 lines
288 B
Python
import os
|
|
from system.loggerd.uploader import UPLOAD_ATTR_NAME, UPLOAD_ATTR_VALUE
|
|
|
|
from system.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)
|