GME

Geospatial Modelling Environment

download (Download File)

Downloads files from websites via an HTTP connection

Description

This tool downloads files from websites via an HTTP connection. It is designed to assist with the automation of workflows that require retrieval of data or programs from a website. If the file already exists in the specified destination folder the tool will not overwrite it unless you have explicitly used the 'overwrite=TRUE' option. You can optionally also run the downloaded file automatically upon download.

Note that the first time the tool is run it can take several seconds to establish an internet connection, but all subsequent calls will be much faster.

Syntax

download(url, folder, [overwrite], [run]);

urlthe full URL of the file to download
folderthe destination folder for the downloaded file
[overwrite](TRUE/FALSE): automatically replace a file if it already exists? (default=FALSE)
[run](TRUE/FALSE) run the file after download? (default=FALSE)

Example

download(url="http://www.spatialecology.com/download/htools.txt", folder="C:\tmp");


Messages

Please consider making a purchase to support the continued development of these tools  Read more...

Tips on how to use this interface efficiently  Read more...

Links

Open Source GIS

Copyright © 2001-2014 Hawthorne L. Beyer, Ph.D., Spatial Ecology LLC    Connect on LinkedIn