1
0
mirror of synced 2024-11-25 02:34:24 +01:00
mat2/libmat2/harmless.py
2018-10-12 14:32:09 +02:00

16 lines
432 B
Python

import shutil
from typing import Dict, Union
from . import abstract
class HarmlessParser(abstract.AbstractParser):
""" This is the parser for filetypes that can not contain metadata. """
mimetypes = {'text/plain', 'image/x-ms-bmp'}
def get_meta(self) -> Dict[str, Union[str, dict]]:
return dict()
def remove_all(self) -> bool:
shutil.copy(self.filename, self.output_filename)
return True