Comment 3 for bug 980786

Revision history for this message
Jean-Peer Lorenz (peer.loz) wrote :

> How could this be solved correctly? Rules with a trailing / must only apply to directories but to know about this, you need to call stat().

I agree and don't see another way than modifying the regular expressions.

I've opened a separate bug to handle this isse and commited a fix: Regular expressions defined in default configuration can be improved (LP #1097465). The default RegExs as of now read:

+ self._regex_excludes = "^/home/[^/]+?/\.gvfs(/|$),"\
+ "^/home/[^/]+?/\.thumbnails(/|$),"\
+ "^/home/[^/]+?/\..+/[tT]rash(/|$),"\
+ "^/home/[^/]+?/\.cache(/|$),"\
+ "^/home/[^/]+?/\..+/[cC]ache(/|$),"\
+ "^/home/[^/]+?/\..+/lock(/|$),"\
                                "~$"

Using this expressions and the fix pushed for this bug (LP #980786) should remove all remaining unwanted warnings and errors from your log.

regards,
jean-peer