Topic "Simple includes mask problem - should be easy"

Author Message
bon
[View user's profile]

Joined: 2009-02-15
Posts: 1
Location: Norwich, UK
I'm using the 'Keep remote directory up to date' function and would like it to watch all PHP files inside some subdirectories named 'watch'. The current working directory is set to 'dir' on the local and remote sides.

My folder structure is:

dir/subdir1/watch/
dir/subdir2/subsubdir1/watch/

I'd like it to watch for changes to *.php files only inside the two directories named 'watch'. I've tried the following include masks but none work:


  • /*/watch/; /*/*/watch/; *.php
  • /*/*/watch/*.php
  • /subdir1/watch/; /subdir2/subsubdir1/watch/; *.php


I'm especially confused why the third mask won't work.

Can anyone suggest an include mask which might work?

Using WinSCP 4.1.8.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
This is not an easy task. Basically WinSCP traverses the local directory structure and omits any folder that is not included in the mask. So you need to make sure all parent folders (down from the root folder of synchronization) are included, but no files within them, except for subfolders you intend to synchronize.
_________________
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