1
0
Fork 0
mirror of synced 2025-07-02 19:41:10 +02:00
mat2/libmat2/harmless.py
2018-07-06 00:49:17 +02:00

15 lines
411 B
Python

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