public static function isValid(string $filePath): bool
    {
        return self::myFilePathParse(
            DIRECTORY_SEPARATOR,
            $filePath,
            function ($p, $d, &$e) {
                return self::myPartValidator($p, $d, $e);
            });
    }
public static function isValid(string $filePath): bool
    {
        return self::myFilePathParse(
            DIRECTORY_SEPARATOR,
            $filePath,
            function ($p, $d, &$e) {
                return self::myPartValidator($p, $d, $e);
            });
    }
public static function isValid ( string $ filePath ) : bool { return self :: myFilePathParse ( DIRECTORY_SEPARATOR , $ filePath , function ( $ p , $ d , & $ e ) { return self :: myPartValidator ( $ p , $ d , $ e ) ; } ) ; }
Checks if a file path is valid.

@since 1.0.0

@param string $filePath The file path.

@return bool True if the $filePath parameter is a valid file path, false otherwise.
Checks if a file path is valid .