From 547e1b632a845dd71df3bb256fc7c2a30dcac4cb Mon Sep 17 00:00:00 2001 From: Mike Date: Fri, 4 Oct 2019 13:16:39 -0400 Subject: [PATCH] Refactored file --- pyShelf.py | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100755 pyShelf.py diff --git a/pyShelf.py b/pyShelf.py deleted file mode 100755 index aefeb2a..0000000 --- a/pyShelf.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/python -import os -import zipfile -from config import Config -config = Config() - -class InitFiles: - """First run file creation operations""" - def __init__(self, file_array): - print("Begining creation of file structure") - for _pointer in file_array: - if not os.path.isfile(_pointer): - self.CreateFile(_pointer) - - def CreateFile(self, _pointer): - """Create the file""" - if not os.path.isdir(os.path.split(_pointer)[0]): - os.mkdir(os.path.split(_pointer)[0]) - f = open(_pointer, "w+") - f.close() - - -class Epub: - """All Epub file handling""" - def __init__(self): - global config - self.book_path = config.book_path - - def import_book(self): - pass - - def book_list(self): - pass