File_Download_needed

cosmo_utils.utils.file_utils.File_Download_needed(localpath, remotepath)[source] [edit on github]

Determines if there exists a local copy of a file. If not, the file is downloaded from the remote server and a copy of the file is saved locally

Parameters:

localpath : str

Local path to the file.

remotepath : str

Remote path to the file. This is the URL of the file, if there is no local copy of the file