Fetch with https is not saving to flash from script

Hello,

I’m trying to download a file through the following command: /tool fetch url= mode=https dst-path=“newfile.rsc”

When doing so from the Terminal, the file is stored on the flash.
When doing the same from a script, the file is not stored on the flash.
I found out that the file is send to RAM instead. How can I change the destination to Flash?

Or as an alternative, can I import the file from the RAM memory?

I have tested this on a RB5009, with ROS 7.14.3 and the latest 7.17.2.

Edwin

I do not read more after mode=https

If you use url you must not use mode

Set dst-path=“flash/newfile.rsc” to save file on flash.
Also as @rextended mentioned, mode=https can be removed, it is deprecated by scheme in url, url=“https://…” to avoid potential issues in some further ROS versions.




import file-name="<some_file>"

it doesn’t depend where file is located if path to file is correct, if is in RAM (tmps) and in not in some subdirectory just set filename in file-name command parameter.