View Single Post
  #2  
Old 06.05.2019, 13:52
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 627
Default

Quote:
Originally Posted by RPNet-user View Post
From the sample event script "create an Info-File in the Download-Folder with detailed information", where is this file created? ...
Default location for file is the download folder for that package:
Code:
sInfoFilePath = myPackage.getDownloadFolder() + "/" + myPackage.getName() + sInfoFileType; //<packageFolder>/<packageName>.<iContent>.info

Quote:
Originally Posted by RPNet-user View Post
.. because after testing a download twice, i could not find the file anywhere ...
The file is created only if link/package comment or archive password is present:
Code:
var iContent = 0; //setting bit 1 if pwd is available, setting bit 2 if comments available //if not set, no info file

That behavior can be changed by modifying this line:
Code:
if (bWriteFile == true && iContent > 0) { //comment out or set "iContent >= 0" if info-file should be written always
Reply With Quote