mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-03-04 21:19:36 +00:00
global-functions: $MkDir: work around restrictions in new file handling
This commit is contained in:
parent
ef03caab47
commit
e14e94162a
1 changed files with 3 additions and 1 deletions
|
|
@ -917,7 +917,9 @@
|
|||
|
||||
$LogPrint debug $0 ("Making directory: " . $Path);
|
||||
|
||||
:if ([ :len [ /file/find where name=$Path type="directory" ] ] = 1) do={
|
||||
:local PathVal;
|
||||
:do { :set PathVal [ /file/get $Path ]; } on-error={ }
|
||||
:if ($PathVal->"type"="directory") do={
|
||||
$LogPrint debug $0 ("... which already exists.");
|
||||
:return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue