lib/private/files/node/folder.php 1 location
|
@@ 113-118 (lines=6) @@
|
| 110 |
|
$rootEntry['storageObject'] = $subStorage; |
| 111 |
|
|
| 112 |
|
//remove any existing entry with the same name |
| 113 |
|
foreach ($files as $i => $file) { |
| 114 |
|
if ($file['name'] === $rootEntry['name']) { |
| 115 |
|
$files[$i] = null; |
| 116 |
|
break; |
| 117 |
|
} |
| 118 |
|
} |
| 119 |
|
$files[] = $rootEntry; |
| 120 |
|
} |
| 121 |
|
} |
lib/private/files/view.php 1 location
|
@@ 1140-1145 (lines=6) @@
|
| 1137 |
|
} |
| 1138 |
|
|
| 1139 |
|
//remove any existing entry with the same name |
| 1140 |
|
foreach ($files as $i => $file) { |
| 1141 |
|
if ($file['name'] === $rootEntry['name']) { |
| 1142 |
|
unset($files[$i]); |
| 1143 |
|
break; |
| 1144 |
|
} |
| 1145 |
|
} |
| 1146 |
|
$rootEntry['path'] = substr(Filesystem::normalizePath($path . '/' . $rootEntry['name']), strlen($user) + 2); // full path without /$user/ |
| 1147 |
|
|
| 1148 |
|
// if sharing was disabled for the user we remove the share permissions |