public function isValid($value)
    {
        $filePath = GeneralUtility::getFileAbsFileName($value);

        if (false === GeneralUtility::getUrl($filePath)) {
            $errorMessage = $this->translateErrorMessage('validator.file_exists.not_valid', 'configuration_object', [$value]);
            $this->addError($errorMessage, 1510085560);
        }
    }
public function isValid($value)
    {
        $filePath = GeneralUtility::getFileAbsFileName($value);

        if (false === GeneralUtility::getUrl($filePath)) {
            $errorMessage = $this->translateErrorMessage('validator.file_exists.not_valid', 'configuration_object', [$value]);
            $this->addError($errorMessage, 1510085560);
        }
    }
public function isValid ( $ value ) { $ filePath = GeneralUtility :: getFileAbsFileName ( $ value ) ; if ( false === GeneralUtility :: getUrl ( $ filePath ) ) { $ errorMessage = $ this -> translateErrorMessage ( 'validator.file_exists.not_valid' , 'configuration_object' , [ $ value ] ) ; $ this -> addError ( $ errorMessage , 1510085560 ) ; } }
Checks if the value is a path to an existing file.

The following syntax is supported: `EXT:my_extension/Path/To/My/File.txt`

@param mixed $value
Checks if the value is a path to an existing file .