I have a file that I need to “protect” so that it cannot be copied! I am using Python on Windows XP.
I think it may just be changing file permissions??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can prevent the file being copied only by removing read permission from the user that shouldn’t be able to copy the file. You can use
os.chmodfor this, or see this page explaining to set permissions with the full Windows security model.