mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-12-25 10:45:04 +01:00
Issue 1278
This commit is contained in:
parent
1c562a034a
commit
345f6bc99f
@ -1,3 +1,7 @@
|
||||
NEW IN WAF 1.7.11
|
||||
-----------------
|
||||
* Node.delete remove empty folders #1278
|
||||
|
||||
NEW IN WAF 1.7.10
|
||||
-----------------
|
||||
* Enhancements in the LaTeX support #1248
|
||||
|
@ -185,7 +185,7 @@ class Node(object):
|
||||
def delete(self):
|
||||
"""Delete the file/folders, and remove this node from the tree. It becomes invalid after that"""
|
||||
try:
|
||||
if getattr(self, 'children', None):
|
||||
if hasattr(self, 'children'):
|
||||
shutil.rmtree(self.abspath())
|
||||
else:
|
||||
os.unlink(self.abspath())
|
||||
|
Loading…
Reference in New Issue
Block a user