-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No explanation of exclude filter options #90
Comments
Continued trial and error has found that this is how to use
I now have a manageable list of duplicates to work through and resolve. |
Same. Need details of the ignored files filter, especially of the regex. |
ok guys i find out the logics in private function testStringCondition(string $operator, string $a, string $b) : bool
{
switch ($operator) {
case 'GLOB':
$result = fnmatch($a, $b);
break;
case 'REGEX':
$result = preg_match($a, $b);
$result = ($result === 0 || $result === false);
break;
default:
$result = $a === $b;
}
return $result;
} Only builtin PHP functions are used here. FYI, fnmatch and preg_match. |
I have choosen
I want to exclude save-games as they may have a lot duplicate files. |
@Quix0r, change your GLOB to:
Hope that helps |
@joepitt91 Yes, it did. Thank you (and now I remember it). |
I like the idea of exclude filters, however, I don't seem to be able to get them working consistently and also don't seem to be able to find any documentation about how to use them.
Adding some examples to
README.md
and the settings page would be really helpful.filename
seems to work as expected:filename = ignore.txt
- excludes ignore.txtfilename GLOB .git*
- excludes .gitignore files etc.size
works as expected:size = 0
- excludes empty filesI cannot get
path
to work no matter how I try, I'm trying to exclude entire directories (recursively) e.g. my development Projects folder:path = /username/files/Projects
- does nothingpath = Projects
- does nothingpath GLOB */Projects
- does nothingI've not tried the RegEx module, as there is no indication of accepted format, i.e. are escaping
/
s needed, etc.The text was updated successfully, but these errors were encountered: