File mask for excluding folders from synchronization

Advertisement

primehalo
primehalo avatar
Joined:
Posts:
3
Location:
Redding, CA

File mask for excluding folders from synchronization

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:
| forum/files/*; forum/files/; forum/files*/; forum/files*/*/    
Can someone please help me find the correct file mask to exclude "forum/files/" from synchronization?

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

WinSCP Sync Preview.png

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

WinSCP Sync Filters.png

Reply with quote

Advertisement

pcmedic
Guest

Directory/File mask

I have a local directory D:\FTP\User\Outgoing that contains a subfolder Archive (D:\FTP\User\Outgoing\Archive) and 2 files, a .txt and a .flg

I am running winscp a the command line with a command file. I change into the outgoing directory and I just want to upload the .txt and .flg but when I say put *.* the Archive directory is included. I am confused on how to exclude the Archive directory.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,271
Location:
Prague, Czechia

Re: Directory/File mask

pcmedic wrote:

I have a local directory D:\FTP\User\Outgoing that contains a subfolder Archive (D:\FTP\User\Outgoing\Archive) and 2 files, a .txt and a .flg

I am running winscp a the command line with a command file. I change into the outgoing directory and I just want to upload the .txt and .flg but when I say put *.* the Archive directory is included. I am confused on how to exclude the Archive directory.
Please read FAQ:
https://winscp.net/eng/docs/faq_script_non_recursive

If that does not help, come back.

Reply with quote

Advertisement

You can post new topics in this forum