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: