Webiny\Component\Storage\Driver\Local\LocalHelper::getAbsolutePrefix PHP Метод

getAbsolutePrefix() защищенный Метод

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