Skip to content
This repository was archived by the owner on Jul 26, 2023. It is now read-only.
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@MuZhou233
Comment options

Comment options

You must be logged in to vote
1 reply
@MuZhou233
Comment options

Answer selected by spencerwooo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question General questions wontfix This will not be worked on solved Question in discussion is solved
3 participants