Tue 10 Apr 2012 08:55:04 PM UTC, comment #7:
Jarl Friis wrote:
> When wget reaches out for '/delivery/c/2/file.png' it fails like this:
> ...
> Cannot write to `delivery/c/2/placemark_icon.png' (Not a directory).
The key phrase here is "Not a directory", because when wget tries to download 'delivery/c/2/file.png', 'delivery' already exists as a regular file, so subdirectory 'delivery/c' cannot be created, neither can 'delivery/c/2', and finally there's no place to store 'file.png' to.
This does not directly depend on '--mirror' or '--page-requisites'.
Fri 23 Apr 2010 09:16:31 AM UTC, Jarl Friis wrote:
> with trailing slash
> ...
> then it works as expected.
Yeah, because with a trailing slash you force 'delivery' to be created as a directory. Then wget loads 'http://localhost:3000/delivery/' into 'delivery/index.html', and 'c' and '2' can be created as subdirectories.
Tue 25 May 2010 06:31:39 PM UTC, Steve Wainstead wrote:
> swain.example.com/store.php/to: Not a directory ...
I bet, you already have store.php as a regular file.
Again '--page-requisites', '--mirror', '--restrict-file-names=unix', and '--no-host-directories' are not related to this bug.
Here is a simple test case:
# -x, --force-directories force creation of directories.
# -nH, --no-host-directories don't create host directories.
# -P, --directory-prefix=PREFIX save files to PREFIX/...
'-x' is essential for these tests.
'-nH' just makes the paths shorter. It has no influence on the test results.
'-P' is used to keep the cases apart.
# ok
# no problem, if any number of directories exist
# fail, if any path component except the last one pre-exists as a regular file
# if the last directory pre-exists as a regular file, it is silently removed
# (c.f. https://savannah.gnu.org/bugs/?23756)
# if the destination file exists as a directory,
# wget downloads to a different filename: bug.orig.png.1
~mk
BTW, comment #5 (l...x...com) is spam!
|