mirror of
https://github.com/Respect/Validation.git
synced 2024-05-22 08:06:42 +02:00
10df3211f5
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
704 B
704 B
Exists
Exists()
Validates files or directories.
v::exists()->validate(__FILE__); // true
v::exists()->validate(__DIR__); // true
This validator will consider SplFileInfo instances, so you can do something like:
v::exists()->validate(new SplFileInfo('file.txt'));
Categorization
- File system
Changelog
Version | Description |
---|---|
0.5.0 | Created |
See also: