cubicweb/web/webctl.py
branch3.25
changeset 12159 8a1306c43656
parent 12140 20035170160c
child 12197 43022c1fa133
--- a/cubicweb/web/webctl.py	Thu Apr 13 12:20:30 2017 +0200
+++ b/cubicweb/web/webctl.py	Thu Apr 13 13:57:32 2017 +0200
@@ -44,7 +44,7 @@
        itself)"""
     for fname in os.listdir(dst):
         fpath = osp.join(dst, fname)
-        if osp.isfile(fpath):
+        if osp.isfile(fpath) or osp.islink(fpath):
             os.unlink(fpath)
         else:
             rmtree(fpath)