Opened 12 years ago

Closed 12 years ago

#9053 closed bug (duplicate)

[Patch] Download crash due to non-existence of a download folder

Reported by: przemub Owned by: leavengood
Priority: normal Milestone: R1
Component: Applications/WebPositive Version: R1/Development
Keywords: crash, download Cc:
Blocked By: #8240 Blocking:
Platform: All

Description

hrev44684. When I changed a download folder to nonexistent /boot/home/Pobieranie and I tried to download a file downloading stopped at 0% without any alert.

My solution assumes automagical create a folder while settings changes are applied.

Change History (5)

by przemub, 12 years ago

Attachment: commit-4910372.patch added

comment:1 by przemub, 12 years ago

patch: 01

comment:2 by phoudoin, 12 years ago

patch: 10

The directory creation should be done in WebKit Haiku's API WebDownloadPrivate class, ideally in findAvailableFilename method, not in Web+ GUI's DownloadWindow. Otherwise, it's indeed the solution.

This ticket is also a duplicate of #8240.

comment:3 by phoudoin, 12 years ago

Also, IIRC, BDirectory's CreateDirectory method don't create missing subdirectories along the path.

Better use create_directory() instead.

comment:4 by phoudoin, 12 years ago

Blocked By: 8240 added
Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.