comparison cutils/util/fnmatch.py @ 300:1fc117f5f9a1

treesum: Implement --include/--exclude commandline parsing for file name inclusion and exclusion. BUGS: - Real filename matching not yet implemented - Pattern description only very rudimentary
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 04 Mar 2025 16:30:10 +0100
parents
children bf88323d6bf7
comparison
equal deleted inserted replaced
299:bcbc68d8aa12 300:1fc117f5f9a1
1 # -*- coding: utf-8 -*-
2 # :-
3 # :Copyright: (c) 2020-2025 Franz Glasner
4 # :License: BSD-3-Clause
5 # :-
6 r"""File name matching.
7
8 """
9
10 from __future__ import print_function, absolute_import
11
12
13 __all__ = []
14
15
16 HELP_DESCRIPTION = """\
17 PATTERNs
18 ========
19
20 glob: case-sensitive, anchored at the begin and end
21 iglob: case-insensitive variant of "glob"
22 re: regular expression
23 path: plain text example (rooted), can be a file or a directory or a prefix
24 thereof
25 filepath: exactly a single file, relative to the root of the tree
26
27 """