public static function isDotPath($path = null)
    {
        if (is_null($path) || empty($path)) {
            return false;
        }
        return (bool) ('.'===substr(basename($path), 0, 1));
    }
public static function isDotPath($path = null)
    {
        if (is_null($path) || empty($path)) {
            return false;
        }
        return (bool) ('.'===substr(basename($path), 0, 1));
    }
public static function isDotPath ( $ path = null ) { if ( is_null ( $ path ) || empty ( $ path ) ) { return false ; } return ( bool ) ( '.' === substr ( basename ( $ path ) , 0 , 1 ) ) ; }
Test if a filename seems to have a dot as first character

@param   string  $path
@return  bool
Test if a filename seems to have a dot as first character