diff options
author | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-03-04 20:52:57 -0500 |
---|---|---|
committer | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-03-04 20:52:57 -0500 |
commit | 8a97023ca565ccd6a2498566af281633e26df3a4 (patch) | |
tree | 8d6435b8157c307d6620b2271ea4eac87767a76b | |
parent | 51b7feef964f77d589fd9e305f4de3f9cf88fb83 (diff) |
combox.file.rm_nodedir uses the rm_dir function to remove directories.
-rw-r--r-- | combox/file.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/combox/file.py b/combox/file.py index 3990166..cda910b 100644 --- a/combox/file.py +++ b/combox/file.py @@ -131,10 +131,7 @@ def rm_nodedir(directory, config): for node in nodes: dir_path = path.join(node, rel_path) - try: - os.rmdir(dir_path) - except OSError, e: - print e, "Something wrong. report bug to sravik@bgsu.edu" + rm_dir(dir_path) def rm_dir(directory): |