mirror of
https://github.com/KrystianD/mikrotik_configurator.git
synced 2025-08-19 17:45:17 +02:00
improved waiting for file creation
This commit is contained in:
@@ -28,7 +28,7 @@ def load_file(path, name):
|
|||||||
|
|
||||||
cnt = f"""
|
cnt = f"""
|
||||||
:execute script=":put \\"{esc}\\"" file="{name}"
|
:execute script=":put \\"{esc}\\"" file="{name}"
|
||||||
:delay 1000ms
|
:while ([:len [/file find where name=\"{name}\"]]=0) do={{:delay 100ms}}
|
||||||
"""
|
"""
|
||||||
return cnt
|
return cnt
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user