make Swift::testLocal workable by fixing the prefix used with the object listing in opendir
This commit is contained in:
parent
506db6c63a
commit
b92061da5a
|
@ -198,15 +198,18 @@ class Swift extends \OC\Files\Storage\Common {
|
||||||
$path .= '/';
|
$path .= '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
error_log($path."\n", 3, "/tmp/opendir");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$files = array();
|
$files = array();
|
||||||
$objects = $this->container->ObjectList(array(
|
$objects = $this->container->ObjectList(array(
|
||||||
'prefix' => $path
|
'prefix' => $path . '/'
|
||||||
));
|
));
|
||||||
|
|
||||||
while ($object = $objects->Next()) {
|
while ($object = $objects->Next()) {
|
||||||
$file = basename($object->Name());
|
$file = basename($object->Name());
|
||||||
if ($file !== basename($path)) {
|
if ($file !== basename($path)) {
|
||||||
|
error_log($file."\n", 3, "/tmp/opendir");
|
||||||
$files[] = $file;
|
$files[] = $file;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue