also expire file if timestamp = limit, happens if trashbin_retention_obligation is set to zero

This commit is contained in:
Bjoern Schiessle 2014-09-15 13:00:04 +02:00
parent 31898aa635
commit f23116ce50

View file

@ -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);