Skip to content

Commit

Permalink
Merge pull request #63 from sdkawata/supress_purgetmp_error
Browse files Browse the repository at this point in the history
テンポラリファイル削除時のエラーを抑制する
  • Loading branch information
d9magai authored Oct 30, 2018
2 parents 34aa8a7 + 7d65281 commit 427857e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -716,9 +716,9 @@ public static function purgeTmp($prefix, $timeout)
continue;
} else if (strncmp($file, $prefix, strlen($prefix)) == 0) {
$f = $c->getDirectory('tmp') . "/" . $file;
$st = stat($f);
$st = @stat($f);
if ($st[9] + $timeout < time()) {
unlink($f);
@unlink($f);
}
}
}
Expand Down

0 comments on commit 427857e

Please sign in to comment.