summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorChristian Berendt <berendt@b1-systems.de>2013-10-23 07:57:41 +0200
committerChristian Berendt <berendt@b1-systems.de>2013-10-23 07:57:41 +0200
commitb92061da5ab2d11f803731628c4304aa8cd302e3 (patch)
tree153082a738150c9747805e91b7e46502215cd87d /apps/files_external
parent506db6c63a4ddc9ffb68af659cd09b26c40e4394 (diff)
downloadnextcloud-server-b92061da5ab2d11f803731628c4304aa8cd302e3.tar.gz
nextcloud-server-b92061da5ab2d11f803731628c4304aa8cd302e3.zip
make Swift::testLocal workable by fixing the prefix used with the object listing in opendir
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/swift.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php
index 981a118f182..2d236eded73 100644
--- a/apps/files_external/lib/swift.php
+++ b/apps/files_external/lib/swift.php
@@ -198,15 +198,18 @@ 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;
}
}