1CDIST-TYPE__CLEAN_PATH(7) cdist CDIST-TYPE__CLEAN_PATH(7)
2
3
4
6 cdist-type__clean_path - Remove files and directories which match the
7 pattern.
8
10 Remove files and directories which match the pattern.
11
12 Provided path (as __object_id) must be a directory.
13
14 Patterns are passed to find's -regex - see find(1) for more details.
15
16 Look up of files and directories is non-recursive (-maxdepth 1).
17
18 Parent directory is excluded (-mindepth 1).
19
20 This type is not POSIX compatible (sorry, Solaris users).
21
23 pattern
24 Pattern of files which are removed from path.
25
27 exclude
28 Pattern of files which are excluded from removal.
29
30 onchange
31 The code to run if files or directories were removed.
32
34 __clean_path /etc/apache2/conf-enabled \
35 --pattern '.+' \
36 --exclude '.+\(charset\.conf\|security\.conf\)' \
37 --onchange 'service apache2 restart'
38
40 Ander Punnar <ander-at-kvlt-dot-ee>
41
43 Copyright (C) 2019 Ander Punnar. You can redistribute it and/or modify
44 it under the terms of the GNU General Public License as published by
45 the Free Software Foundation, either version 3 of the License, or (at
46 your option) any later version.
47
49 ungleich GmbH 2019
50
51
52
53
546.4.0 Jan 04, 2020 CDIST-TYPE__CLEAN_PATH(7)