Topic "Session.PutFiles - non recursive SFTP"

Author Message
John Thomas
[View user's profile]

Joined: 2013-06-27
Posts: 2
Location: Malaysia

I need to do an SFTP transfer which is non-recursive.
I tried using Filemasks but still not able to do a non-recursive transfer.
Currently all the files and subdirectories in the source location are transferred over. I need the sub directories to remain intact.
How do I proceed further?

Thanks a bunch!
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26331
Location: Prague, Czechia
put -filemask="|*/" *

I.e.: | to start exclude mask and */ to match (=exclude) all directories.

This is for the latest version of WinSCP.

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License