Post a reply

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

Deems

Download from SFTP when you know the file name but not the remote folder name

Hi all,
I have this remote file structure:

/root/mainFolder/folder1/folder2/.../folderN

Suppose I don't know in advance in which exactly subfolder my file will be located, can I tell WinSCP to scan all the subfolders starting with mainFolder to find the file by its name?

I tried this:
get /mainFolder/*/20200317_Annual.* F:\Download\
but just got this in response:
No file matching '20200317_Annual.*' found.

though the file does exist in one of the subfolders.