This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |