wget ".listing: No such file or directory"

14,004

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.

Share:
14,004

Related videos on Youtube

luqita
Author by

luqita

Updated on June 04, 2022

Comments

  • luqita
    luqita almost 2 years

    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!

  • gbmhunter
    gbmhunter about 5 years
    This solved my problem too (had to add sudo), this is such an unorthodox error to see when the destination directory is not writable.
  • Reece
    Reece over 3 years
    Very useful. Just saved me hours. Thanks.

Related