Skip to content

Commit

Permalink
Fix: Fixed issue where listings are not shown if no additional metada…
Browse files Browse the repository at this point in the history
…ta is present for them in the container rdf data
  • Loading branch information
Dexagod committed Dec 31, 2022
1 parent f350ba4 commit 797f099
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,12 @@ export function getResourceInfoFromDataset(dataset: SolidDataset, resourceUrl: s
isDir: types.indexOf('http://www.w3.org/ns/ldp#Container') !== -1 || types.indexOf('http://www.w3.org/ns/ldp#BasicContainer') !== -1,
modified, mtime, size, types
}
} else {
resourceInfo = {
url: resourceUrl,
relativePath: baseUrl ? resourceUrl.slice(baseUrl.length) : undefined,
isDir: resourceUrl.endsWith('/') // Note: it might be best to dereference the URL to check for sure, but this saves an extra request.
}
}
return resourceInfo
}
Expand Down

0 comments on commit 797f099

Please sign in to comment.