mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-06-20 17:55:40 +02:00
global-functions: $MkDir: create directory directly...
... instead of file inside directory. This requires RouterOS 7.15, so bumping requirement.
This commit is contained in:
parent
dbdc3e4718
commit
0fb5fd0323
2 changed files with 4 additions and 6 deletions
|
@ -4,7 +4,7 @@ RouterOS Scripts
|
|||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||
[](https://mikrotik.com/download/changelogs/)
|
||||
[](https://mikrotik.com/download/changelogs/)
|
||||
[](https://t.me/routeros_scripts)
|
||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# Michael Gisbers <michael@gisbers.de>
|
||||
# https://rsc.eworm.de/COPYING.md
|
||||
#
|
||||
# requires RouterOS, version=7.14
|
||||
# requires RouterOS, version=7.15
|
||||
# requires device-mode, fetch, scheduler
|
||||
#
|
||||
# global functions
|
||||
|
@ -895,10 +895,8 @@
|
|||
}
|
||||
|
||||
:do {
|
||||
:local File ($Path . "/file");
|
||||
/file/add name=$File;
|
||||
$WaitForFile $File;
|
||||
/file/remove $File;
|
||||
/file/add type="directory" name=$Path;
|
||||
$WaitForFile $Path;
|
||||
} on-error={
|
||||
$LogPrint warning $0 ("Making directory '" . $Path . "' failed!");
|
||||
:return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue