ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Post here if you experience file transfer problems or unexpected errors.
Hi,

I am having a little trouble with a script - I keep getting the following error:

***** SYNC Error #123 : Cannot get file listing of current local directory.
***** The system said: The filename, directory name, or volume label syntax is incorrect.

FTP Script
  1. SETPASSIVE(ENABLED)
  2. $log_file_name="D:\BACKUPS\ABC\SCRIPTFTP\LOGS\ABC-LOG-".GETDATE(FORMAT2).".txt"
  3. LOGTO($log_file_name)
  4. OPENHOST("FTP-SERVER","USERNAME","PASSWORD")
  5. LOCALCHDIR("D:\BACKUPS\ABC\Website\")
  6. SYNC("D:\BACKUPS\ABC\Website\","/",DOWNLOAD,SUBDIRS)
And the output to my ScriptFTP Window is:
Connected.

LOCALCHDIR("D:\BACKUPS\ABC\Website\")
Changing current local directory to D:\BACKUPS\ABC\Website\

SYNC("D:\BACKUPS\ABC\Website\","/htdocs",DOWNLOAD,SUBDIRS)
Uploading temporary file to calculate server-client clock time difference.
Clock time difference is -3601 seconds.
Synchronizing local directory D:\BACKUPS\ABC\Website\ from /htdocs.
Downloading (local file not found) .htaccess
Downloading (local file not found) OLDpages_RENAMED
***** SYNC Error #123 : Cannot get file listing of current local directory.
***** The system said: The filename, directory name, or volume label syntax is incorrect.


CLOSEHOST
Disconnected.

STOPLOG()
Stoping output logging
This same script is used with with another FTP site and that works fine! :(

I will also continue to check what it could be but am starting to get frustrated! :(

Thanks for reading!
Hellooo,
After some more poking around - I found the issue!

There was a permissions issue with .htaccess files, so I used the ADDEXCLUSION command to ignore these files, and the script was back up and running again!

For those who read my post and scratched your chins in thought, I thank you for your time! :D
Thanks for your message :) Probably other users find it useful