Gaufrette\Adapter\Sftp::computeKey PHP Method

computeKey() public method

Computes the key from the specified path.
public computeKey ( string $path ) : string
$path string
return string
    public function computeKey($path)
    {
        if (0 !== strpos($path, $this->directory)) {
            throw new \OutOfBoundsException(sprintf('The path \'%s\' is out of the filesystem.', $path));
        }
        return ltrim(substr($path, strlen($this->directory)), '/');
    }