This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
关于为多个文件夹设置密码 #170
Answered
by
spencerwooo
Cubik65536
asked this question in
Q&A
关于为多个文件夹设置密码
#170
-
您好, 有个问题,假如我在
或者增加 感谢解答 |
Beta Was this translation helpful? Give feedback.
Answered by
spencerwooo
Nov 20, 2021
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
spencerwooo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
protectedRoutes
在项目中的utils/tools.ts
进行匹配的,因此:*
一定是不可以的,因为是根据当前路径来「匹配是否为加密文件夹」并「找到当前加密文件夹的.password
路径」的,而不是通配符则匹配全部路径;/
也无法完成你想要的效果,因为是根据 match 到的路径来确定当前文件夹所在的.password
绝对路径,如果设置为/
就会默认找到~/.password
这一个文件而不是你所要的「每个文件夹的单独.password
文件」来「独立设置密码」。