Commit a5bad66a authored by Laurent EL SHAFEY's avatar Laurent EL SHAFEY
Browse files

fix bug

parent cfe50662
......@@ -44,7 +44,7 @@ def try_remove_files(filename, recurse, verbose):
if os.path.exists(filename):
os.unlink(filename)
if verbose: print verbose + ("removed `%s'" % filename)
d = os.path.dirname(filename)
d = os.path.dirname(filename)
if recurse and os.path.exists(d) and not os.listdir(d):
os.removedirs(d)
if verbose: print verbose + ("recursively removed `%s'" % d)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment