def restore_all_items(self, feed_id): feed_dir = self.__get_feed_directory(feed_id) if os.path.exists(feed_dir): read_dir = os.path.join(feed_dir, 'read') fileutils.move_files(read_dir, feed_dir)
def mark_all_read(self, feed_id): feed_dir = self.__get_feed_directory(feed_id) if os.path.exists(feed_dir): read_dir = os.path.join(feed_dir, 'read') fileutils.move_files(feed_dir, read_dir)