Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

fsabelha

dir/ls only works with specific file if using a wildcard

Winscp.com Version 5.15 (Build 9365) on Windows Server 2012 R2

We have a new problem after upgrading WinSCP. I can only get dir or ls to find a specific file if I add a wildcard at the end of the filename.

Example, I first make sure the file is there with a dir on the directory:
winscp> dir ./data/incoming/immediate/
---------- 0 47 Jun 26 14:10 franktest.txt

Next, I try to dir the specific file:
winscp> dir ./data/incoming/immediate/franktest.txt
Error listing directory './data/incoming/immediate/franktest.txt'.
Could not retrieve directory listing
The filename, directory name, or volume label syntax is incorrect.
(A)bort, (R)etry, (S)kip: Skip

But, if I add a wildcard to the end of the file, it lists the file okay:
winscp> dir ./data/incoming/immediate/franktest.txt*
---------- 0 47 Jun 26 14:10 franktest.txt

Thank you.