Mecha CMS

Detector.

Is::folder()

Check if current input is a valid folder path and make sure it is exists.

2.0.02.2.0static
Is::folder($x);

Example:

if (Is::folder('.\path\to\folder')) { … }
if (Is::folder('.\path\to\file.txt')) { … }
if (Is::folder('<a>bcdef</a>')) { … }
if (Is::folder([1, 2, 3])) { … }