JDownloader Community - Appwork GmbH
 

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 01:51.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.