Topic "Synchronize - File Mask Not Ignoring Subdirectories"

Author Message
chipmunkofdoom2
[View user's profile]

Joined: 2013-02-25
Posts: 1
Location: MD, USA
Hello,

I am using the WinSCP.com executable with command line arguments. I am running Windows 7 and simply running this command from the command prompt. I have tried everything I can think of, but I cannot seem to get the command to exclude subdirectories when syncing. The sync command works just fine and transfers the files, but then it continues on to the subdirectories, which I do not want. I looked all over the forums and tried the "filemask = "/*"" argument, but can't seem to figure it out. Here is the command I'm using. How do I get it to ignore subdirectories?

E:\WinSCP.com /command "open ""myuserid@mysite.com""" "synchronize local -mirror ""-filemask=*.zip"" ""E:\Inbound\"" ""/Site/Files/""" "exit"

I'm using the latest version of WinSCP (5.1.4). The site is FTP protocol with SSL Explicit encryption. Thanks a million!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
-filemask=""*.zip| */""
See
https://winscp.net/eng/docs/file_mask#directory_mask
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