def _make_writable(path, silent=False): if silent and not os.path.exists(path): return return chmod_native(path, "u+w", recursive=True)
def _make_readonly(path, silent=False): if silent and not os.path.exists(path): return return chmod_native(path, "ugo-w", recursive=True)