combox

split and encrypted files between online file storage providers
git clone git://git.ricketyspace.net/combox.git
Log | Files | Refs

commit 20c630a1b89c4f431d63e7bf5c04928956400bcb
parent ef7c8cf3ffc3c867582c367f706252d87d96a718
Author: Siddharth Ravikumar <sravik@bgsu.edu>
Date:   Mon, 11 Jan 2016 21:05:32 -0500

modified combox.file.rm_path function.

Diffstat:
ChangeLog | 2++
combox/file.py | 1+
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -9,6 +9,8 @@ already exist. * setup.py: added function for reading a file; we don't use the read_file function from combox.file module anymore. + * combox/file.py (rm_path): rm_path function, if it is given a + directory, purges it first before deleting it. 2016-01-10 Siddharth Ravikumar <sravik@bgsu.edu> diff --git 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)