download_file
Download file from the Moku file system to local machineUser can download files from bitstreams, logs, ssd, media and persist directories. If using the
REST API directly, these directories form the group name in the URL and the filename
follows the download command; e.g. /api/persist/download/<filename>
. No Client Key is
required (ownership doesn't need to be taken).
When using either of the clients, user can access this function directly from instrument reference.
Log files downloaded from persist (Moku:Go), media (Moku:Lab) or ssd (Moku:Pro) will be in _.li format, which can then be converted to _.csv, _.mat, or _.npy using LI File Converter.
If you experience issues converting log files with the MATLAB API, please use download_file2 method with the same parameters.
Parameters
allowed values:bitstreams, logs, persist, ssd, media
Caution
local_path should always be a absolute path with file name. For example, in Python instead of passing it as "/user/home" or "./home" pass it as "/user/home/sample.txt"
Usage in clients,