Skip to content

Commit

Permalink
fix: (regression 0.55.0) web-links couldn't be accessed with a direct…
Browse files Browse the repository at this point in the history
… link #857
  • Loading branch information
rejetto committed Jan 9, 2025
1 parent 97c7f7a commit 4a95018
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ export function getNodeName(node: VfsNode) {
export async function nodeIsDirectory(node: VfsNode) {
if (node.isFolder !== undefined)
return node.isFolder
if (node.children?.length || !node.source)
return true
if (nodeIsLink(node))
return false
if (node.children?.length || !node.source)
return true
const isFolder = await nodeStats(node).then(x => x!.isDirectory(), () => false)
setHidden(node, { isFolder }) // don't make it to the storage (a node.isTemp doesn't need it to be hidden)
return isFolder
Expand Down

0 comments on commit 4a95018

Please sign in to comment.