NotExists validator checks for the existence of the provided
files. It supports the following options:
*: Set any key or use a numeric array. Checks whether the file exists in the given directory.
This validator accepts multiple directories either as a comma-delimited string, or as an
array. You may also use the methods
set and retrieve directories.
Example 424. Using the NotExists Validator
$upload = new Zend_File_Transfer();
// Add the temp directory to check
$upload->addValidator('NotExists', false, '\temp');
// Add two directories using the array notation
Note that this validator checks if the file does not exist in all of the provided directories. The validation will fail if the file does exist in any of the given directories.