Begining to build in directory recursion for book scanning

This commit is contained in:
Mike
2019-09-24 16:47:29 -04:00
commit 3c49cdf5e2
18 changed files with 151 additions and 0 deletions

33
pyShelf.py Executable file
View File

@@ -0,0 +1,33 @@
#!/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