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

getKey() public method

Gets the key using file $path and storage $directory
public getKey ( string $path, string $directory ) : string
$path string Path to extract file key from
$directory string Directory of the storage
return string
    public function getKey($path, $directory)
    {
        $path = $this->normalizePath($path);
        return ltrim(substr($path, strlen($directory)), '/');
    }