Skip to content

Commit

Permalink
Fix fuse subdirectories.
Browse files Browse the repository at this point in the history
  • Loading branch information
saul-jb committed Feb 27, 2024
1 parent af626d2 commit 8fde7ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/fuse/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const opts: FuseOpts = {
const pathParts = path.split('/').filter(p => Boolean(p))

const filteredList = list
.filter(l => l.path.startsWith(path))
.map(l => ({
...l,
name: l.path.split('/').filter(p => Boolean(p)).slice(pathParts.length)[0]
Expand Down

0 comments on commit 8fde7ab

Please sign in to comment.