private static function detectStream($path)
    {
        $stream = 'file';

        if (false !== strpos($path, '://')) {
            $parts  = explode('://', $path);
            $stream = $parts[0];
        }

        return $stream;
    }
private static function detectStream($path)
    {
        $stream = 'file';

        if (false !== strpos($path, '://')) {
            $parts  = explode('://', $path);
            $stream = $parts[0];
        }

        return $stream;
    }
private static function detectStream ( $ path ) { $ stream = 'file' ; if ( false !== strpos ( $ path , '://' ) ) { $ parts = explode ( '://' , $ path ) ; $ stream = $ parts [ 0 ] ; } return $ stream ; }
detects if the the path is linked to an file stream

@param $path

@return string
detects if the the path is linked to an file stream