mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 09:46:25 +00:00
Allow metadata editor to embed directories
This commit is contained in:
@@ -43,10 +43,10 @@ class MetadataParser:
|
||||
'Bookmarks': []}
|
||||
self.rawdata = None
|
||||
self.compressor = None
|
||||
if self.source.endswith('.xml'):
|
||||
if self.source.endswith('.xml') and os.path.exists(self.source):
|
||||
self.rawdata = parse(self.source)
|
||||
self.parseXML()
|
||||
else:
|
||||
elif not self.source.endswith('.xml'):
|
||||
if is_zipfile(self.source):
|
||||
self.compressor = 'zip'
|
||||
with ZipFile(self.source) as zip_file:
|
||||
|
||||
Reference in New Issue
Block a user