Quote:
Originally Posted by mgpai
@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