expand user home directory

pull/101/head
manu 7 years ago
parent f4a5b67ceb
commit 8d112a921a

@ -33,6 +33,7 @@ class Shredder(object):
self._recent_cutoff = arrow.now().replace(hours=-self._hours)
self._nuke_cutoff = arrow.now().replace(hours=-self._nuke_hours)
if self._save_directory:
self._save_directory = os.path.expanduser(self._save_directory)
if not os.path.exists(self._save_directory):
os.makedirs(self._save_directory)

Loading…
Cancel
Save