summaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage/local.php
diff options
context:
space:
mode:
authorSjors van der Pluijm <sjors@desjors.nl>2014-04-28 13:05:20 +0200
committerSjors van der Pluijm <sjors@desjors.nl>2014-04-28 13:05:20 +0200
commitd7ec1fe44721d28cfc93191dc604132df41dd5db (patch)
treefe9489b19d7aac633d67ce720dc5d6719f717246 /lib/private/files/storage/local.php
parentd8be9d96edec4ef8934b46e32298dfbed2b2a0a3 (diff)
downloadnextcloud-server-d7ec1fe44721d28cfc93191dc604132df41dd5db.tar.gz
nextcloud-server-d7ec1fe44721d28cfc93191dc604132df41dd5db.zip
rewind iterator before iteration starts
Diffstat (limited to 'lib/private/files/storage/local.php')
-rw-r--r--lib/private/files/storage/local.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php
index 16689ee905c..ed2ad870858 100644
--- a/lib/private/files/storage/local.php
+++ b/lib/private/files/storage/local.php
@@ -44,6 +44,7 @@ if (\OC_Util::runningOnWindows()) {
new \RecursiveDirectoryIterator($this->datadir . $path),
\RecursiveIteratorIterator::CHILD_FIRST
);
+ $it->rewind();
while ($it->valid()) {
/**
* @var \SplFileInfo $file