I am attempting to remove a directory on the SD card on the PYBD-SF6W. I am using the command os.rmdir(<name of directory>); however, I am receiving the following error:
>>> os.rmdir('ControllerData')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 13] EACCES
Does anyone know why this might be occurring?
EACCES issue with '/sd' subdirectory
Re: EACCES issue with '/sd' subdirectory
Did you try using "os.rmdir("/sd/ControllerData") (or whatever the correct path is) and is the directory empty?
os.rmdir("ControllerData") will try to remove the file from the current directory, which I think by default would be /
os.rmdir("ControllerData") will try to remove the file from the current directory, which I think by default would be /