JDownloader Community - Appwork GmbH

Thread Tools Display Modes
Old 04.02.2023, 07:05
mav mav is offline
DSL Light User
Join Date: Mar 2021
Posts: 34
Default change package download path - issues with empty package download directories

possible cause for empty download directories:
when JD2 is making a download attempt of a new package (e.g. rapidgator free), the download directory is created before download of actual data of the first file actually startes (before the captcha is successfully completed).
now the download is cancelled (e.g. captcha timeout) -> no file is created, download directory is empty.

problem with empty directories:
1) if package download path is changed, empty package download directory is left behind in old path
2) if two packages are merged via drag and move in the GUI, also empty directory is left in old path

current behaviour
the old directory is moved correctly, if downloaded files were already there.

expected behaviour
empty old directory is moved as well, when package download path is changed

if this is not desired default behaviour, maybe a new setting would be nice to control this behaviour:
similar to GeneralSettings: Delete Empty Sub Folder After Deleting Downloaded Files

Reply With Quote
Old 13.02.2023, 16:26
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
Join Date: Mar 2009
Location: Deutschland
Posts: 65,558

I can see your point but:
At this moment the current behavior is expected.

Reasons why:
  • Without creating the directory in beforehand, JDownloader cannot know if the path exists/permissions are given -> Asking for captcha first only to fail later wouldn't be good
  • To be able to delete such folders, JDownloader would also need to keep track of all directories it creates -> Not possible at this moment
  • Theoretically your JD could contain multiple different packages which are writing to the same directory all while running parallel downloads -> Your desired handling could cause problems here too
  • Theoretically you could set JD to use an empty directory which was created in beforehand and is also used/needed by other applications so deleting that could cause problems with other applications

At this moment I'd recommend using either an EventScripter script or an external application/script to auto-delete all empty directories below your download-folder whenever JDownloader is not running.
That should do the trick too.

Also I've created a ticket for a setting which may partly or even fully solve your request:
Only create download directory when download is _really_ started:
JD Supporter, Plugin Dev. & Community Manager
JDownloader 2 Setup Download

A users' JD crashes and the first thing to ask is:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
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 17:32.
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 - 2023, Jelsoft Enterprises Ltd.