mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-11 02:34:29 +05:00
chore: more info when scan wifi
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user