Signed-off-by: Julius Härtl <jus@bitgrid.net>
private function collectUsersShares(string $sourceUid,
OutputInterface $output,
View $view,
- ?string $path = null): array {
+ string $path): array {
$output->writeln("Collecting all share information for files and folders of $sourceUid ...");
$shares = [];
if (empty($sharePage)) {
break;
}
- if ($path !== null) {
+ if ($path !== "$sourceUid/files") {
$sharePage = array_filter($sharePage, function (IShare $share) use ($view, $path) {
try {
$relativePath = $view->getPath($share->getNodeId());