/tool fetch https://127.0.0.1/ dst-path=path/to/create/xxx
/file remove path/to/create/xxx
No idea why the script creates user, group and whatever. Given you have http-ssl service enabled this should suffice:
Alternatively use whatever webserver. It creates a file as well, just remove that:Code: Select all/tool fetch https://127.0.0.1/ dst-path=path/to/create/xxx
Code: Select all/file remove path/to/create/xxx
{
# ----- Create directory tree with /fetch -----
# Take note of the 'dot' (or 'space') in place of 'file name',
# this will prevent the fetched website from actually being saved as a file
# even if fetch is successful
:local path "disk1/complex/directory/tree/."
:do { /tool fetch dst-path=($path) url="https://127.0.0.1/"; } on-error={ :put "Script will continue dispite an error"; }
:local otherpath "disk1/some/other/dir/."
/tool fetch dst-path=($otherpath) url="https://www.google.com/"
}
status: failed
failure: cannot open file