File Sync File Filters

I have a folder (Libronix DLS) within My Documents that I want to sync with my pen drive.

Some of the sub folders need to be synced as they apply to my home PC, others do not since they are only relevant to my local machine, and some are just too big for my pen.

I have been trying to use the file filter to filter out certain folders and their contents (file and sub-folders) but the compare button is still including them in its statistics of files to be copied.

I have tried different combinations of match / no match / quotes etc. (although not at the same time, the image below is for illustration only).

It should be easy because if a folder, e.g. pbb, is to be excluded then all files and all sub-folders in pbb should be excluded, without exception ... except that I seem to be missing something.

many thanks

Martin.

(Dopus 9.0.0.2 + XP Pro)

I haven't looked at this for long so there may be other things but the thing that stands out to me as wrong is your Subfolder clause.

You are telling Opus to not go into subfolders whose name is "Martins Docs" and "pbb". No folder will be called both names at once (obviously) so that won't match anything and the subfolder clause thus won't exclude anything. You need to change the and to an or.

Good spot ... but it is still a problem when I only have one folder in the clause.

Or when I do not use the sub folder clause at all, only the location.

I have also tried the subclause example as given in the help:

[quote]· Type: Matches files based on their file type. This is an alternative to using the Name command to specify a wildcard file extension. For example, instead of have a “Name *.txt” command, you can have a “type Text Document” field. This can make the filter much easier to read.

You can also use the Type command in combination with the Subclause command to exclude folders from file operations using the Copy/Delete Filters. For example, if you wanted to copy everything except a folder called “Debug”, you would add the following command to the filter.

          Subclause      No Match

                              Name  Match  Debug

                    And     Type   Match  Folders Only

[/quote]

Could you show a screenshot of the items that are included but shouldn't be?

Here is one example.

I am trying to filter the pbb folder first simply because there are no spaces in the name, and no sub-folers within pbb.


The sync tool is file-based, rather than folder-based, so I'm not sure if you can exclude folders themselves as you're doing there. Instead, as I understand it, you have to exclude the files inside the folders that you don't want to copy.

With a Find, rather than a Synchronize, a Subfolder clause is the best way to exclude everything below a certain folder. Subfolder doesn't seem to work with the Sync tool, though (at least in 9.0.0.2; I haven't installed 9.0.0.3 yet). (Note: Subfolder and Subclause are two different things.)

There's still a solution, though. To exclude all files under pbb from being synchronized, add a Location clause which excludes *\pbb(|*)

The b[/b] at the end means it will exclude files that are directly below pbb (location matches *\pbb) and files which are in a sub-directory of pbb (location matches *\pbb*).

I tested the filter shown below with a simple example and it seems to work.

Thanks Nudel, that seems to have nailed it

:smiley:

Now to sort out what is saved when you save a sync lister, and what is inherited from the last sync lister (eg. which filter to use does not seem to be saved with the lister)

I am thinking that this can be set up via a button ... but we will see.

Many thanks

Martin.