Skip to content

Commit

Permalink
MDL-52189 file: skip deleting temp files that appear during cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-umn authored and usqfowlerj committed Jan 22, 2020
1 parent 36984d4 commit b477930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classes/task/file_temp_cleanup_task.php
Expand Up @@ -68,7 +68,7 @@ protected function execute_on($tmpdir) {
// Now loop through again and remove old files and directories.
for ($iter->rewind(); $iter->valid(); $iter->next()) {
$node = $iter->getRealPath();
if (!is_readable($node)) {
if (!isset($modifieddateobject[$node]) || !is_readable($node)) {
continue;
}

Expand Down

0 comments on commit b477930

Please sign in to comment.