I'm writing a script that will copy directories from a drive that I have full access to. I'm wondering if it is possible to set a parameter in the script to prevent the rest of script from modifying/deleting directories that it will be processing.
Something like:
import os
import shutils
os.preventFromModify()
shutil.rmtree("path") # should not be possible