Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 701 Bytes

Exists.md

File metadata and controls

41 lines (30 loc) · 701 Bytes

Exists

  • Exists()

Validates files or directories.

v::exists()->isValid(__FILE__); // true
v::exists()->isValid(__DIR__); // true

This validator will consider SplFileInfo instances, so you can do something like:

v::exists()->isValid(new SplFileInfo('file.txt'));

Categorization

  • File system

Changelog

Version Description
0.5.0 Created

See also: