ConfD User Community

/confdConfig/cli/restrictedFileRegexp (string) []


#1

description:

restrictedFileRegexp is either an empty string or an regular expression (AWK style). If not empty then
all files and directories created or accessed must match the regular expression. This can be used to
ensure that certain symbols does not occur in created file names.

I can not very understand this label, for example, if i want to filter the file “*.c”, what is the value of “/confdConfig/cli/restrictedFileRegexp (string) []” should i set ?

Thanks !


#2

Any regular expression example for this field?
I tried many different expressions and I am always getting:
syntax error: illegal filename

confd version=6.5.6