Topic "File mask for excluding folders from synchronization"

Author Message
primehalo
[View user's profile]

Joined: 2008-04-18
Posts: 3
Location: Redding, CA
I'm running WinSCP 5.1.0 (Build 2625) on Windows 7 64-bit.

On a synchronization between local folders and a server I am trying to get it to ignore the directory "forum/files/", as in I don't want it to sync any files or folders that are in that directory. I have tried adding these filters to the file mask but it doesn't seem to be working:
Code:
| forum/files/*; forum/files/; forum/files*/; forum/files*/*/

Can someone please help me find the correct file mask to exclude "forum/files/" from synchronization?
WinSCP Sync Preview.png (70.71 KB) [Download]

Description: The synchronization preview window which is still putting checkmarks next to files in the folder I'm trying to ignore.

WinSCP Sync Filters.png (75.25 KB) [Download]

Description: The exclusion file mask filters I'm trying.

Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
Code:
| */forum/files/

See https://winscp.net/eng/docs/file_mask#path_mask
_________________
Martin Prikryl
primehalo
[View user's profile]

Joined: 2008-04-18
Posts: 3
Location: Redding, CA
Thank you! That one worked!

I went over https://winscp.net/eng/docs/file_mask#path_mask several times trying to figure why forum/files/ wasn't working. Looking at it again, it is still not clear why */forum/files/ works and forum/files/ does not.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
I have updated the documentation to make it clear:
https://winscp.net/eng/docs/file_mask#path_mask
_________________
Martin Prikryl
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