Codiad-Terminal
Codiad-Terminal copied to clipboard
'JAILED' to cd within project directoly only.
Hi,
I have one enhancement idea.
Now user can change working directory anywhere by cd command. It is not secure.
So how about introduce 'JAILED' constant, and when it is true, user can move within only project directory.
It is not hard to implement, I think.
- Once move to user specified directory when used 'cd' command.
- Get absolute directory by 'pwd'.
- Compare if 'pwd' result will start with project root directory.
- If pwd result is not in project root, show error message, then just move to project root.
How about this?
ML, Hiro
I agree with @HiroKws
:+1: