Quote:
Originally Posted by dariotoby
... have a text file in the same folder ... after the download is finished, where the file name is shown and ... the download link.
|
Code:
/*
Write info to text file
Trigger: A Download stopped
*/
if (link.finished) {
var name = link.name;
var url = link.contentURL || link.pluginURL;
var data = [name, url];
var file = "linkInfo";
var folder = link.package.downloadFolder;
var filePath = getPath(folder + "/" + file + ".txt");
writeFile(filePath, data.join(", ") + "\r\n", true);
}