also expire file if timestamp = limit, happens if trashbin_retention_obligation is set to zero
This commit is contained in:
parent
31898aa635
commit
f23116ce50
1 changed files with 1 additions and 1 deletions
|
@ -799,7 +799,7 @@ class Trashbin {
|
|||
foreach ($files as $file) {
|
||||
$timestamp = $file['mtime'];
|
||||
$filename = $file['name'];
|
||||
if ($timestamp < $limit) {
|
||||
if ($timestamp <= $limit) {
|
||||
$count++;
|
||||
$size += self::delete($filename, $user, $timestamp);
|
||||
\OC_Log::write('files_trashbin', 'remove "' . $filename . '" from trash bin because it is older than ' . $retention_obligation, \OC_log::INFO);
|
||||
|
|
Loading…
Reference in a new issue