mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 15:50:03 +01:00
626 B
626 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: