wget ".listing: No such file or directory"

luqita picture luqita · Apr 13, 2011 · Viewed 10.1k times · Source

I am trying to transfer a directory of one server to another (something I did two weeks ago) but now I am not sure why this is not working. I am using:

wget -nc -r ftp://user:password@host/directory/directory/

and then getting this:

Logging in as 'user'... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /directory/directory/directory ... done.
==> PASV ... done.    ==> LIST ... done.
host/dir/dir/dir: No such file or directoryhost/dir/dir/dir/.listing: No such file or directory
unlink: no such file or directory

What's going on?

Thanks for any help!

Answer

gdw2 picture gdw2 · Jul 29, 2015

I recently got a No such file or directory error regarding the .listing file (similar to yours) and it turned out that the directory in which I was running wget was not writable.