android - PYthon, Deleting my DCIM File -


hey using qpython3 , want delete dcim-file using python, still doesn´t work. using motorola moto g 2. android 4.4: here´s code have change?

import os path = os.environ["sdcard"] + "/dcim" if os.path.exists(path) == true:     print(path, "exists.")     os.remove(path)     print("file succesfully deleted.") else:     print(path,"file not existing.") 

keyerror: b "sdcard"

thank yuór answers.


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -