Error listing directory

Advertisement

Bullmax1
Joined:
Posts:
2

Error listing directory

I have been using automated scripting using SFTP to my server for the last couple of years. My host has advised me to use FTP now. But when I change to FTP I get the following errors:
Error listing directory '/home/name/public_html/folder
Could not retrieve directory listing
Can't change directory to /home/name/public_html/folder No such file or directory.
My bat file:
:Loop
winscp.com /script=script.txt
timeout 900
goto :Loop
My script file:
open ftp://user:password@domain.com:21/ 
synchronize remote "C:\Users\Me\Desktop\folder\" "/home/name/public_html/folder/" 
exit
Hoping someone can help with this. Thanks.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Re: Error listing directory

This is something you should discuss with your provider. I can only guess that your FTP account is chrooted (contrary to the SFTP), so the path might be only /public_html/folder/, or maybe only /folder/. Login with WinSCP GUI and see for yourself, what paths are used on the FTP account.

Reply with quote

Advertisement

You can post new topics in this forum