explicitly close the streams when doing recursive copy
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
a0d48c568d
commit
d0dc07ed75
|
@ -470,7 +470,10 @@ class OC_Util {
|
|||
closedir($dir);
|
||||
return;
|
||||
}
|
||||
stream_copy_to_stream($sourceStream, $child->fopen('w'));
|
||||
$targetStream = $child->fopen('w');
|
||||
stream_copy_to_stream($sourceStream, $targetStream);
|
||||
fclose($targetStream);
|
||||
fclose($sourceStream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue