summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-04-19 06:28:35 +0000
committerJeremy Katz <katzj@redhat.com>2002-04-19 06:28:35 +0000
commit8e7a9bc91b98a02e41dd6d53e8a2027c482346a8 (patch)
tree1c94bb1caace167e96375666ad0cc9467e83d471 /iutil.py
parent34e94e67312be97452e79939ae7104afae3c041b (diff)
downloadanaconda-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.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/iutil.py b/iutil.py
index cedf2661b..b1c1cc3b8 100644
--- a/iutil.py
+++ b/iutil.py
@@ -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)