def get_filetype(fpath): """Return a mime-style filetype string.""" return magic.from_file(fpath, mime=True)