@@ 142-151 (lines=10) @@ | ||
139 | * |
|
140 | * @return array |
|
141 | */ |
|
142 | public static function listFolder( |
|
143 | $bucketName, $path, $num = 20, |
|
144 | $pattern = 'eListBoth', $order = 0, |
|
145 | $context = null) |
|
146 | { |
|
147 | $path = self::normalizerPath($path, true); |
|
148 | ||
149 | return self::listBase($bucketName, $path, $num, |
|
150 | $pattern, $order, $context); |
|
151 | } |
|
152 | ||
153 | /** |
|
154 | * 目录列表(前缀搜索). |
|
@@ 165-174 (lines=10) @@ | ||
162 | * |
|
163 | * @return array |
|
164 | */ |
|
165 | public static function prefixSearch( |
|
166 | $bucketName, $prefix, $num = 20, |
|
167 | $pattern = 'eListBoth', $order = 0, |
|
168 | $context = null) |
|
169 | { |
|
170 | $path = self::normalizerPath($prefix); |
|
171 | ||
172 | return self::listBase($bucketName, $path, $num, |
|
173 | $pattern, $order, $context); |
|
174 | } |
|
175 | ||
176 | /** |
|
177 | * 目录更新. |