JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > International Support > JDownloader 2
Reply
 
Thread Tools Display Modes
  #1  
Old 04.02.2023, 07:05
mav mav is offline
Wind Gust
 
Join Date: Mar 2021
Posts: 42
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

alternative
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

Thanks,
Mav
Reply With Quote
  #2  
Old 13.02.2023, 16:26
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

Hi,
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

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
Reply


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 09:47.
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.