Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 646 Bytes

Exists.md

File metadata and controls

36 lines (27 loc) · 646 Bytes

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));

Changelog

Version Description
0.5.0 Created

See also: