Merge pull request #592 from leonelcamara/fix_appcleanup

Make app_cleanup use recursive_unlink to clean the cache folder. This fi...
This commit is contained in:
mdipierro
2015-01-21 09:32:01 -06:00
+1 -1
View File
@@ -121,7 +121,7 @@ def app_cleanup(app, request):
if os.path.exists(path):
for f in os.listdir(path):
try:
if f[:1] != '.': os.unlink(os.path.join(path, f))
if f[:1] != '.': recursive_unlink(os.path.join(path, f))
except IOError:
r = False
return r