mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-07-03 23:14:26 +02:00
global-functions: $MkDir: use $FileGet ...
... to work around restrictions in new file handling.
This commit is contained in:
parent
b70e6e7984
commit
1e4f168735
1 changed files with 3 additions and 1 deletions
|
@ -893,6 +893,7 @@
|
||||||
:local Path [ :tostr $1 ];
|
:local Path [ :tostr $1 ];
|
||||||
|
|
||||||
:global CleanFilePath;
|
:global CleanFilePath;
|
||||||
|
:global FileGet;
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
:global RmDir;
|
:global RmDir;
|
||||||
:global WaitForFile;
|
:global WaitForFile;
|
||||||
|
@ -930,7 +931,8 @@
|
||||||
|
|
||||||
$LogPrint debug $0 ("Making directory: " . $Path);
|
$LogPrint debug $0 ("Making directory: " . $Path);
|
||||||
|
|
||||||
:if ([ :len [ /file/find where name=$Path type="directory" ] ] = 1) do={
|
:local PathVal [ $FileGet $Path ];
|
||||||
|
:if ($PathVal->"type" = "directory") do={
|
||||||
$LogPrint debug $0 ("... which already exists.");
|
$LogPrint debug $0 ("... which already exists.");
|
||||||
:return true;
|
:return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue