It is confusing when you don't seem to understand what "locking a file" means and refuse to give more details regarding what level of protection would be needed. I have suggested several solutions, including creating special directories, password protected archives and encrypted files but you refuse to comment on these. How am I, or any other developer, supposed to understand what you actually want if you refuse to go into detail (more than "it should lock files, like, so, like, they're like locked")? Asking good questions helps when wanting good answers. While preparing to ask that good question, your research will reveal more details helping you make your question even better. If creating a directory named "Private" somewhere solves your problem, fine, but if you want something else, do get into the details. I'm not spending time on this forum to act as your on demand coder, but I do try to help if I can so please lay off the "You started by being rude.".