.\" Man page generated from reStructuredText. . .TH "CDIST-TYPE__CLEAN_PATH" "7" "Jun 23, 2019" "5.1.2" "cdist" . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH NAME .sp cdist\-type__clean_path \- Remove files and directories which match the pattern. .SH DESCRIPTION .sp Remove files and directories which match the pattern. .sp Provided path (as __object_id) must be a directory. .sp Patterns are passed to \fBfind\fP\(aqs \fB\-regex\fP \- see \fBfind(1)\fP for more details. .sp Look up of files and directories is non\-recursive (\fB\-maxdepth 1\fP). .sp Parent directory is excluded (\fB\-mindepth 1\fP). .sp This type is not POSIX compatible (sorry, Solaris users). .SH REQUIRED PARAMETERS .INDENT 0.0 .TP .B pattern Pattern of files which are removed from path. .UNINDENT .SH OPTIONAL PARAMETERS .INDENT 0.0 .TP .B exclude Pattern of files which are excluded from removal. .TP .B onchange The code to run if files or directories were removed. .UNINDENT .SH EXAMPLES .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C __clean_path /etc/apache2/conf\-enabled \e \-\-pattern \(aq.+\(aq \e \-\-exclude \(aq.+\e(charset\e.conf\e|security\e.conf\e)\(aq \e \-\-onchange \(aqservice apache2 restart\(aq .ft P .fi .UNINDENT .UNINDENT .SH AUTHORS .sp Ander Punnar .SH COPYING .sp Copyright (C) 2019 Ander Punnar. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. .SH COPYRIGHT ungleich GmbH 2019 .\" Generated by docutils manpage writer. .