2016-03-21, 00:21
Hi, i'm running osmc on pizero,
i can manually delete files in my osmc .kodi folder by using ssh at command line:
rm .kodi/temp/*.fi
I want to automate this at startup and have added an autoexec.py file to my .kodi/userdata folder
import os
myfile="/.kodi/temp/*.fi"
## if file exists, delete it ##
if os.path.isfile(myfile):
os.remove(myfile)
else: ## Show an error ##
print("Error: %s file not found" % myfile)
On reboot the files are not deleted
Could someone help ?
i can manually delete files in my osmc .kodi folder by using ssh at command line:
rm .kodi/temp/*.fi
I want to automate this at startup and have added an autoexec.py file to my .kodi/userdata folder
import os
myfile="/.kodi/temp/*.fi"
## if file exists, delete it ##
if os.path.isfile(myfile):
os.remove(myfile)
else: ## Show an error ##
print("Error: %s file not found" % myfile)
On reboot the files are not deleted
Could someone help ?