Topic "Scripting: GET files excluding subdirectories"

Author Message
PrgSRR@...

Guest


Hello:

I am using the scripting commands for automation purposes and I am trying to download all "Files" in the remote directory EXCLUDING the sub-directories (such as Archive, Backup, etc.) which are located within the remote directory.

GET *.*
Would download all files and sub-directories, so I am trying to use:
GET -filemask=|*/
GET -filemask="| */"
But it is not working out as expected.
It is specifically downloading sub-directories with the above command.

Any assistance is very much appreciated.

Thank You.

Cheers!
SRR
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
get -filemask="| */" *
Make sure you are using the latest version of WinSCP.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License