mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 07:45:45 +01:00
646 B
646 B
File
File()
Validates files.
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));
Changelog
| Version | Description |
|---|---|
| 0.5.0 | Created |
See also: