-
Hi there, I'm interesting in how to hide the file list by a specific file just like the Could I know how to reach that? Or if someone will make this function a mainline feature. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It's currently not available, and do you mean that you want to collapse the file list? |
Beta Was this translation helpful? Give feedback.
-
You may do the filtering in |
Beta Was this translation helpful? Give feedback.
You may do the filtering in
pages/api/index.ts
after getting all children of the folder, and the file listing view will rely on its return value.But users can still get the original children list like via item api with the id of the folder, or via search api with the folder name as query keyword.
Anyway making a folder look empty while keeping the actual children accessible is just a visual defense.
If you are going to defend programers, a heavy work is required so maybe you need to implement them by yourself. Otherwise the above (i.e. just do filtering in
pages/api/index.ts
) should be enough.