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