Webiny\Component\Storage\Driver\Local\LocalHelper::getAbsolutePrefix PHP Method

getAbsolutePrefix() protected method

Returns the absolute prefix of the given path
protected getAbsolutePrefix ( string $path ) : string
$path string A normalized path
return string
    protected function getAbsolutePrefix($path)
    {
        preg_match('|^(?P<prefix>([a-zA-Z]:)?/)|', $path, $matches);
        if (empty($matches['prefix'])) {
            return '';
        }
        return strtolower($matches['prefix']);
    }