mirror of
https://github.com/nextcloud/server.git
synced 2026-07-15 04:51:46 -04:00
rewind iterator before iteration starts
This commit is contained in:
parent
d8be9d96ed
commit
d7ec1fe447
1 changed files with 1 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ if (\OC_Util::runningOnWindows()) {
|
|||
new \RecursiveDirectoryIterator($this->datadir . $path),
|
||||
\RecursiveIteratorIterator::CHILD_FIRST
|
||||
);
|
||||
$it->rewind();
|
||||
while ($it->valid()) {
|
||||
/**
|
||||
* @var \SplFileInfo $file
|
||||
|
|
|
|||
Loading…
Reference in a new issue