diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-04-19 06:28:35 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-04-19 06:28:35 +0000 |
commit | 8e7a9bc91b98a02e41dd6d53e8a2027c482346a8 (patch) | |
tree | 1c94bb1caace167e96375666ad0cc9467e83d471 /iutil.py | |
parent | 34e94e67312be97452e79939ae7104afae3c041b (diff) | |
download | anaconda-8e7a9bc91b98a02e41dd6d53e8a2027c482346a8.tar.gz anaconda-8e7a9bc91b98a02e41dd6d53e8a2027c482346a8.tar.xz anaconda-8e7a9bc91b98a02e41dd6d53e8a2027c482346a8.zip |
more merging fun from the hampton branch. I'm pretty sure this doesn't
work now, at least in gui. text mode might, though
Diffstat (limited to 'iutil.py')
-rw-r--r-- | iutil.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -298,7 +298,11 @@ def findtz(basepath, relpath): def rmrf (path): # this is only the very simple case. - files = os.listdir (path) + if os.path.isdir(path): + files = os.listdir (path) + else: + os.unlink(path) + return for file in files: if os.path.isdir(path + '/' + file): rmrf (path + '/' + file) |