diff options
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php index b5e2b8a0d4e..339a12dc1ed 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -534,8 +534,9 @@ class OC_Helper { public static function tmpFileNoClean($postfix='') { $tmpDirNoClean=get_temp_dir().'/oc-noclean/'; if (!file_exists($tmpDirNoClean) || !is_dir($tmpDirNoClean)) { - if (file_exists($tmpDirNoClean)) + if (file_exists($tmpDirNoClean)) { unlink($tmpDirNoClean); + } mkdir($tmpDirNoClean); } $file=$tmpDirNoClean.md5(time().rand()).$postfix; |