Merge branch 'Implement-Office-document-metadata-removal-for-Word-(.docx)-Excel-(.xlsx)-and-PowerPoint-(.pptx)-files' of https://github.com/Heritage-XioN/metadata-scrubber-tool into Implement-Office-document-metadata-removal-for-Word-(.docx)-Excel-(.xlsx)-and-PowerPoint-(.pptx)-files
This commit is contained in:
commit
e98488c0de
|
|
@ -44,7 +44,7 @@ class MetadataFactory:
|
||||||
UnsupportedFormatError: If no handler is defined for the file type.
|
UnsupportedFormatError: If no handler is defined for the file type.
|
||||||
ValueError: If the path is not a valid file.
|
ValueError: If the path is not a valid file.
|
||||||
"""
|
"""
|
||||||
supported_extensions = ".jpg, .jpeg, .png, .docx, .xlsx, .pptx"
|
supported_extensions = ".jpg, .jpeg, .png, .pdf, .docx, .xlsx, .xlsm, .xltx, .xltm, .pptx, .pptm, .potx, .potm"
|
||||||
ext = Path(filepath).suffix.lower()
|
ext = Path(filepath).suffix.lower()
|
||||||
if Path(filepath).is_file():
|
if Path(filepath).is_file():
|
||||||
if ext in [".jpg", ".jpeg", ".png"]:
|
if ext in [".jpg", ".jpeg", ".png"]:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue