mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 15:25:45 +01:00
722 B
722 B
File
File()
Validates whether file input is as a regular filename.
v::file()->validate(__FILE__); // true
v::file()->validate(__DIR__); // false
This validator will consider SplFileInfo instances, so you can do something like:
v::file()->validate(new SplFileInfo('file.txt'));
Categorization
- File system
Changelog
| Version | Description |
|---|---|
| 0.5.0 | Created |
See also: