Skip to content

Commit 797f099

Browse files
committed
Fix: Fixed issue where listings are not shown if no additional metadata is present for them in the container rdf data
1 parent f350ba4 commit 797f099

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/utils/util.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,12 @@ export function getResourceInfoFromDataset(dataset: SolidDataset, resourceUrl: s
345345
isDir: types.indexOf('http://www.w3.org/ns/ldp#Container') !== -1 || types.indexOf('http://www.w3.org/ns/ldp#BasicContainer') !== -1,
346346
modified, mtime, size, types
347347
}
348+
} else {
349+
resourceInfo = {
350+
url: resourceUrl,
351+
relativePath: baseUrl ? resourceUrl.slice(baseUrl.length) : undefined,
352+
isDir: resourceUrl.endsWith('/') // Note: it might be best to dereference the URL to check for sure, but this saves an extra request.
353+
}
348354
}
349355
return resourceInfo
350356
}

0 commit comments

Comments
 (0)