Mecha CMS

Detector.

Is::path()

Check for valid local path address.

2.0.02.2.0static
Is::path($x, $exist = false);

Example:

// Check for valid local path address (whether it is exists or not)
if (Is::path('.\path\to\file.txt')) { … }
// Check for valid local path address and make sure it is exists
if (Is::path('.\path\to\file.txt', true)) { … }