I'm new to using wget, so I hope this is not a dumb question :
How can I save a file to a local directory that has been named after the link to the file ?
It does not seem to work if a redirection was involved in the download.
For instance: say I'm downloading a file from www.abc.com/news/xyz.jif
, I can get wget to save a local copy to a directory named www.abc.com
with sub directory news
and then file xyz.jif
.
If however the file xyz.jif
was moved to www.qwerty.com/old/xyz.jif
and the search was re-directed there, the file is still saved under www.abc.com
...etc
As I said, I'm new to this, so I hope I've explained the problem correctly.
Here's a simple real world example (using wget):
wget --force-directories www.smugmug.com/photos/1235566-S.jpg
it is saved to : c:\www.smugmug.com/photos/1235566-S.jpg , which is incorrent. It should have saved it to c:\suz.smugmug.com/photos/1235566-S.jpg
, where it was redirected to.