summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--combox/file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/combox/file.py b/combox/file.py
index c70e11e..cb64307 100644
--- a/combox/file.py
+++ b/combox/file.py
@@ -176,7 +176,7 @@ def rm_path(fpath):
try:
if path.isfile(fpath):
os.remove(fpath)
- else:
+ elif path.isdir(fpath):
os.rmdir(fpath)
except OSError, e:
print e, "Something wrong. report bug to sravik@bgsu.edu"