Hello,
In one of my scripts, i am using the remove function to delete a file:
import os
os.remove('Filename')
For one file, i get this error:
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
OSError: [Errno 13] Permission denied: 'Filename'
It's because the file is protected in writing. Has anybody an idea how i could delete this file? Is there any other function? Or is it possible to change the state of the file on "not protected"?
Thanks for your advice
Chrus
In one of my scripts, i am using the remove function to delete a file:
import os
os.remove('Filename')
For one file, i get this error:
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
OSError: [Errno 13] Permission denied: 'Filename'
It's because the file is protected in writing. Has anybody an idea how i could delete this file? Is there any other function? Or is it possible to change the state of the file on "not protected"?
Thanks for your advice
Chrus