Client: Can't add pattern #*# to ignore list

Created on 8 Sep 2017  路  4Comments  路  Source: owncloud/client

One of our users can't add the pattern #*# to the client's ignore list. Trying to add this pattern manually into the sync-exclude.lst results in the client is deleting this entry.

Our user wants to exclude temporary emacs files with this entry.

Tested with v2.3.2 on Linux Mint 17.x.

@SamuAlfageme Any idea why this isn't working as expected?

00008148

ReadyToTest blue-ticket bug

Most helpful comment

Indeed lines starting with # in the sync-exclude.lst are being ignored as comments:

https://github.com/owncloud/client/blob/8be2aaa751f03088efc5600be1d20adc732526b3/src/csync/csync_exclude.cpp#L158-L168

We should provide a way to exclude these; i.e. escaping the pattern somehow.

All 4 comments

Some more thoughts:

Maybe it has to do with the first #. I can add *#*#, but not #*#.
The # is a comment in bash and some other files.
Maybe it's the reason?

With the pattern *#*# I will ignore the file #Test.txt#, but it will ignore a#test.txt#, too. So, that's not a clean workaround.

Indeed lines starting with # in the sync-exclude.lst are being ignored as comments:

https://github.com/owncloud/client/blob/8be2aaa751f03088efc5600be1d20adc732526b3/src/csync/csync_exclude.cpp#L158-L168

We should provide a way to exclude these; i.e. escaping the pattern somehow.

Simple suggestion: Allow # to become #, and add a example comment to the default sync-exclude.lst. However, when you use the ignore list editor to add '#foo', this will actually end up just adding a comment, which is counter-intuitive and also needs to be fixed.

馃憤 neat!

Was this page helpful?
0 / 5 - 0 ratings