Skip to content

Commit f8d8ff5

Browse files
icewind1991AndyScherzinger
authored andcommitted
fix: skip copying skeleton if the user has 0 quota
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 4735f06 commit f8d8ff5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/private/legacy/OC_Util.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public static function copySkeleton($userId, \OCP\Files\Folder $userDirectory) {
133133
throw new \RuntimeException('username is reserved name: ' . $appdata);
134134
}
135135

136-
if (!empty($skeletonDirectory)) {
136+
if (!empty($skeletonDirectory) && $userDirectory->getFreeSpace() !== 0) {
137137
$logger->debug('copying skeleton for ' . $userId . ' from ' . $skeletonDirectory . ' to ' . $userDirectory->getFullPath('/'), ['app' => 'files_skeleton']);
138138
self::copyr($skeletonDirectory, $userDirectory);
139139
// update the file cache

0 commit comments

Comments
 (0)