def _remove_dir(self, path): log.info("Share Removing dir", path) if path in ["", "."]: # Can't remove the root folder here... items = self.list(path) for item in items: try: self.remove_file(item) except: self.remove_dir(item) else: FolderStore._remove_dir(self, path)
def __init__(self, name="__dummy__", limit="", auto_manage=False, root="/var/backups/store", mount="", umount=""): FolderStore.__init__(self, name, limit, auto_manage, root) self.mount = mount self.umount = umount for attr in ["mount", "umount"]: self._persistent.append(attr)