summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-09-12 22:05:49 -0400
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-09-12 22:05:49 -0400
commit422238eb4904de14842221fa09a2b4028801afb1 (patch)
tree9cc01003a2a8eaeb12afea96adae8ae915e529f6
parent9d14db03da5d10d5ab0d7cc76b20e7b1ed5523bf (diff)
fix for bug #7.
-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"