Subject: | getstore fails silently if directory doesn't exist |
The following fails silently:
my $status = getstore($my_url, "path/with/nonexistent/directories/file");
is_success($status); # true if $my_url was found
The file is apparently downloaded, but is then lost, which is puzzling because no errors are printed out. I think the proper thing to do would be to either fail with an error message saying the destination directory doesn't exist, or to create the directory and put the downloaded file there as requested.
Using Strawberry 5.20.1, LWP::Simple 6.0 (couldn't install latest version).