[BUGFIX] filemetadata: differenciate between file types