Skip to content

Instantly share code, notes, and snippets.

View bennett's full-sized avatar

Glenn Bennett bennett

View GitHub Profile
function get_remote_file(filename, url, fn_end, fn_progress ) {
Ti.API.info("[filename]" + filename);
Ti.API.info("[url]" + url);
var file_obj = {file:filename, url:url, path: null};
file_obj.fresh = 0; // Assume the old file will be returned
var file = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory,filename);