Skip to content

Commit 2927869

Browse files
committed
ignore files and folders starting with xx
1 parent 92633a2 commit 2927869

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
asdasd

src/fs/get_content.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ export async function rc_read_file(file_path: string): Promise<File> {
4444
file_or_dir.is_dir = true;
4545
file_or_dir.content = await Promise.all(
4646
(await fs.readdir(file_path))
47-
.filter((name) => !name.endsWith("DS_Store") && name !== "node_modules")
47+
.filter(
48+
(name) =>
49+
!name.endsWith("DS_Store") &&
50+
name !== "node_modules" &&
51+
!name.startsWith("xx")
52+
)
4853
.map((name) => rc_read_file(path.join(file_path, name)))
4954
);
5055
}

0 commit comments

Comments
 (0)