<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/validators/file-exists, branch vyos/1.3dev0</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/marekm72/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/marekm72/vyos-1x.git/atom?h=vyos%2F1.3dev0</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-1x.git/atom?h=vyos%2F1.3dev0'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/'/>
<updated>2019-08-07T09:58:21+00:00</updated>
<entry>
<title>Validator: add file-exists as replacement to Vyatta check_file_in_config_dir</title>
<updated>2019-08-07T09:58:21+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2019-08-07T09:35:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=097a088725eb632bec3e09a2e563fc96139d86ba'/>
<id>urn:sha1:097a088725eb632bec3e09a2e563fc96139d86ba</id>
<content type='text'>
Verify if a file exists or not on the system. Can be called by:
&lt;constraint&gt;
  &lt;validator name="file-exists" argument="--directory /config/auth"/&gt;
&lt;/constraint&gt;

The --directory option is used to ensure a given file path lies under this
(mandatory) directory. A directory can be mandatory when the optional argument
-e, --error is used. This will return '1' instead of '0'.
</content>
</entry>
</feed>
