View Single Post
  #11  
Old 16.04.2019, 14:09
leanhdung leanhdung is offline
Ultra Loader
 
Join Date: Aug 2017
Location: Vietnam
Posts: 48
Default

Quote:
Originally Posted by mgpai View Post
@leanhdung, you will also need to get the package name.

Replace:
Code:
var myFilePackage = package;
With:
Code:
var myFilePackage = link.getPackage().getName();
I have tried your code

Code:
if (link.isFinished()) {
    var myFilePackage = link.getPackage().getName();
    getPath(link.getDownloadPath()).moveTo("D:/" + myFilePackage);
}
with the link

Code:
**External links are only visible to Support Staff**
Although there is no error message, the folder D:\Pack 1 is still empty
Reply With Quote