Skip to content

Commit

Permalink
make durable durable
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Feb 29, 2024
1 parent 77cf2d5 commit 094bd1d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/realtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,10 @@ const createDurableFS = (state: DurableObjectState): MFFS => {
});

const files: string[] = [];
const base = metaKey("");

for (const key of match.keys()) {
const base = key.replace(filepath, "");

if (base.lastIndexOf("/") === 0) {
files.push(base);
}
files.push(key.replace(base, ""));
}

return files;
Expand Down

0 comments on commit 094bd1d

Please sign in to comment.