Script with ls followed by an individual file name gives an error

Advertisement

PaulDD
Donor
Joined:
Posts:
1
Location:
North Carolina

Script with ls followed by an individual file name gives an error

Using 5.7.7 on Windows 7 in a script. I put a file to the site and have an ls command, followed by the file name, which gives this error from the log:

> 2016-07-02 10:28:31.673 Script: ls uszc-basic-full.csv
. 2016-07-02 10:28:31.674 Retrieving directory listing...
> 2016-07-02 10:28:31.674 CWD /site/data/uszc-basic-full.csv/
< 2016-07-02 10:28:31.769 550 The system cannot find the path specified.
. 2016-07-02 10:28:31.779 Could not retrieve directory listing
. 2016-07-02 10:28:31.779 Asking user:
. 2016-07-02 10:28:31.779 Error listing directory 'uszc-basic-full.csv'. ("Could not retrieve directory listing","The system cannot find the path specified. ")
< 2016-07-02 10:28:31.779 Script: Error listing directory 'uszc-basic-full.csv'.
< 2016-07-02 10:28:31.780 Script: Could not retrieve directory listing

< 2016-07-02 10:28:31.780 The system cannot find the path specified.
. 2016-07-02 10:28:31.783 Script: Failed
. 2016-07-02 10:28:31.783 Script: Exit code: 1
. 2016-07-02 10:28:31.788 Disconnected from server

It seems to think that the file name is part of the path. If I put an asterisk after the file name, it works fine, so that will be my workaround for now.

Reply with quote

Advertisement

You can post new topics in this forum