Topic "Session.PutFiles - non recursive SFTP"

Author Message
John Thomas
[View user's profile]

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

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!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Code:
put -filemask="|*/" *


I.e.: | to start exclude mask and */ to match (=exclude) all directories.
See http://winscp.net/eng/docs/file_mask

This is for 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