Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion apps/files_trashbin/lib/Trashbin.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ private static function copyFilesToUser($sourcePath, $owner, $targetPath, $user,

$target = $user . '/files_trashbin/files/' . $targetFilename . '.d' . $timestamp;
$source = $owner . '/files_trashbin/files/' . $sourceFilename . '.d' . $timestamp;
self::copy_recursive($source, $target, $view);
$free = $view->free_space($target);
if (($free < 0) || ($view->filesize($source) < $free)) {
self::copy_recursive($source, $target, $view);
}


if ($view->file_exists($target)) {
Expand Down