]> source.dussan.org Git - nextcloud-server.git/commitdiff
rewind iterator before iteration starts
authorSjors van der Pluijm <sjors@desjors.nl>
Mon, 28 Apr 2014 11:05:20 +0000 (13:05 +0200)
committerSjors van der Pluijm <sjors@desjors.nl>
Mon, 28 Apr 2014 11:05:20 +0000 (13:05 +0200)
lib/private/files/storage/local.php

index 16689ee905c283f203e8a08dfe03a215db4098ae..ed2ad87085877f1784edf6605fbb9e77d16c9c98 100644 (file)
@@ -44,6 +44,7 @@ if (\OC_Util::runningOnWindows()) {
                                        new \RecursiveDirectoryIterator($this->datadir . $path),
                                        \RecursiveIteratorIterator::CHILD_FIRST
                                );
+                               $it->rewind();
                                while ($it->valid()) {
                                        /**
                                         * @var \SplFileInfo $file