Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. var links = getAllDownloadLinks();
  2.  
  3. var link = links[0];
  4. var filePath = getPath(link.getDownloadPath());
  5. var downloadFolder = getPath(link.getPackage().getDownloadFolder()).getAbsolutePath();
  6.  
  7. alert(filePath);
  8. alert(filePath.getAbsolutePath());//Not returning string
  9. alert(downloadFolder);
  10. alert(downloadFolder.getAbsolutePath());//Not returning String
  11. writeFile(JD_HOME + "/testfile.txt",filePath + "\r\n", true);
  12. writeFile(JD_HOME + "/testfile.txt",filePath.getAbsolutePathn() + "\r\n", true);//Not returning String
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement