src/Seaweed.php
public function getUrl($path) {
        $mapping = $this->mapper->get($path);

        if (!$mapping) {
            return false;
        }

        try {
            $volume = $this->client->lookup($mapping['fid']);

            return $this->client->buildVolumeUrl($volume->getPublicUrl(), $mapping['fid']);
        } catch (SeaweedFSException $e) {
            return false;
        }
    }
public function getUrl($path) {
        $mapping = $this->mapper->get($path);

        if (!$mapping) {
            return false;
        }

        try {
            $volume = $this->client->lookup($mapping['fid']);

            return $this->client->buildVolumeUrl($volume->getPublicUrl(), $mapping['fid']);
        } catch (SeaweedFSException $e) {
            return false;
        }
    }
public function getUrl ( $ path ) { $ mapping = $ this -> mapper -> get ( $ path ) ; if ( ! $ mapping ) { return false ; } try { $ volume = $ this -> client -> lookup ( $ mapping [ 'fid' ] ) ; return $ this -> client -> buildVolumeUrl ( $ volume -> getPublicUrl ( ) , $ mapping [ 'fid' ] ) ; } catch ( SeaweedFSException $ e ) { return false ; } }
Get the public URL of a path.

@param $path
@return string|bool
Get the public URL of a path .