| @@ 1305-1307 (lines=3) @@ | ||
| 1302 | * @author Dmitry (dio) Levashov |
|
| 1303 | **/ |
|
| 1304 | public function ls($hash) { |
|
| 1305 | if (($dir = $this->dir($hash)) == false || !$dir['read']) { |
|
| 1306 | return false; |
|
| 1307 | } |
|
| 1308 | ||
| 1309 | $list = array(); |
|
| 1310 | $path = $this->decode($hash); |
|
| @@ 2115-2117 (lines=3) @@ | ||
| 2112 | * @author Naoki Sawada |
|
| 2113 | */ |
|
| 2114 | public function getContentUrl($hash, $options = array()) { |
|
| 2115 | if (($file = $this->file($hash)) == false || !$file['url'] || $file['url'] == 1) { |
|
| 2116 | return false; |
|
| 2117 | } |
|
| 2118 | return $file['url']; |
|
| 2119 | } |
|
| 2120 | ||