summaryrefslogtreecommitdiffstats
path: root/combox
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2016-01-11 21:05:32 -0500
committerSiddharth Ravikumar <sravik@bgsu.edu>2016-01-11 21:05:32 -0500
commit20c630a1b89c4f431d63e7bf5c04928956400bcb (patch)
treef19df51851b0d924eb93fee9c1847373393cdcd9 /combox
parentef7c8cf3ffc3c867582c367f706252d87d96a718 (diff)
modified combox.file.rm_path function.
Diffstat (limited to 'combox')
-rw-r--r--combox/file.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/combox/file.py b/combox/file.py
index 08f7ccf..cbbce9c 100644
--- a/combox/file.py
+++ b/combox/file.py
@@ -225,6 +225,7 @@ def rm_path(fpath):
if path.isfile(fpath):
os.remove(fpath)
elif path.isdir(fpath):
+ purge_dir(fpath)
os.rmdir(fpath)
except OSError, e:
log_e("Error when trying to remove path %s" % fpath)