chore: more info when scan wifi

This commit is contained in:
Yurii
2024-06-10 14:55:14 +03:00
parent baf8adfb02
commit 249d32ce35
10 changed files with 71 additions and 27 deletions

View File

@@ -25,6 +25,9 @@ def before_buildfs(source, target, env):
dst_name = name + ".gz"
dst_path = os.path.join(dst, os.path.relpath(root, src), dst_name)
if os.path.exists(os.path.join(dst, os.path.relpath(root, src))) == False:
os.mkdir(os.path.join(dst, os.path.relpath(root, src)))
with gzip.open(dst_path, 'wb', 9) as f_out:
shutil.copyfileobj(f_in, f_out)