import/lists/autocompleteFolder
This commit is contained in:
parent
94443ee667
commit
d6f350e5a1
42 changed files with 955 additions and 436 deletions
|
|
@ -22,6 +22,8 @@ def get_id(f=None, data=None):
|
|||
def metadata(f):
|
||||
ext = f.split('.')[-1]
|
||||
data = {}
|
||||
data['extension'] = ext
|
||||
data['size'] = os.stat(f).st_size
|
||||
if ext == 'pdf':
|
||||
info = pdf.info(f)
|
||||
elif ext == 'epub':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue