def W():
print("deleting")
[f.unlink() for f in Path("../Image-Loader-V20/IMG").glob("*") if f.is_file()]
[f.unlink() for f in Path("../Image-Loader-V20/TXT").glob("*") if f.is_file()]
pass
Clock.schedule_interval(W, 10.0)
I am trying to delete the contents of a file every hour but here i put 10 seconds but when I run it nothing happens which is kinda weird does anyone know what is happenening? Like the files do delete with the function but the thing just dont work...
I tried it with () next to W but that neither