Topic "How to "get" but exclude sub-directories"

Author Message
chrish22

Guest


Hi

I'm using WinSCP 4.3.6 and creating a script to retrieve files.

I'm trying to get all files from a remote directory

get *.*

The remote directory has an archive sub-folder - I don not want to get this.

Is there a way I can do this?

Thanks

Chris
TimU
[View user's profile]

Joined: 2012-01-30
Posts: 25
Location: Sydney
Set this switch in your transfer script, or via the command line:

#Do Not Recurse through sub-dirs
Option exclude */
Guest




TimU wrote:
Set this switch in your transfer script, or via the command line:

#Do Not Recurse through sub-dirs
Option exclude */


Nothing short of superb, this had worked.

Thanks for your help
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