Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TreeJson文件过滤 #5

Closed
ghost opened this issue Sep 23, 2021 · 1 comment
Closed

TreeJson文件过滤 #5

ghost opened this issue Sep 23, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 23, 2021

我把workspace放在了unity工程里面,tree json会读到.meta文件,读desc的时候导致整个文件列表crash,需要加一个过滤!

Explorer.tsx
const files = fs.readdirSync(folder);

fixed:
const files = fs.readdirSync(folder).filter((f) =>{
return f.endsWith(".json");
});

@zhandouxiaojiji
Copy link
Owner

已合并

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant