| @@ 1284-1286 (lines=3) @@ | ||
| 1281 | * @author Dmitry (dio) Levashov |
|
| 1282 | **/ |
|
| 1283 | public function ls($hash) { |
|
| 1284 | if (($dir = $this->dir($hash)) == false || !$dir['read']) { |
|
| 1285 | return false; |
|
| 1286 | } |
|
| 1287 | ||
| 1288 | $list = array(); |
|
| 1289 | $path = $this->decode($hash); |
|
| @@ 2091-2093 (lines=3) @@ | ||
| 2088 | * @author Naoki Sawada |
|
| 2089 | */ |
|
| 2090 | public function getContentUrl($hash, $options = array()) { |
|
| 2091 | if (($file = $this->file($hash)) == false || !$file['url'] || $file['url'] == 1) { |
|
| 2092 | return false; |
|
| 2093 | } |
|
| 2094 | return $file['url']; |
|
| 2095 | } |
|
| 2096 | ||