Difference between revisions of "Retrieve file.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Restore pre-bulk-edit wiki content)
(Normalise sequential blank lines)
Line 29: Line 29:
 
* [[Main_Page]]
 
* [[Main_Page]]
 
* [[Kernel_utilities]]
 
* [[Kernel_utilities]]
−
 
−
 
  
 
''Version 2.11, authors: [[Ilya Kuprov]]''
 
''Version 2.11, authors: [[Ilya Kuprov]]''

Revision as of 12:29, 25 April 2026

Retrieves a file from an HTTPS link and stores it in a user-specified directory.

Syntax

        file_path=retrieve_file(file_url,file_name,dest_dir)

Arguments

        file_url  - HTTPS URL pointing to the file to retrieve
        file_name - name of the file to be stored on disk
        dest_dir  - destination directory for the downloaded file

Outputs

        file_path - full path to the retrieved file

Examples

See examples in the Spinach distribution relevant to this function.

Notes

This page was generated from the function header in the Spinach repository.

See also

Version 2.11, authors: Ilya Kuprov