cc @YaLTeR in case there was a reason for going via mime
(Sorry @alatiera , I know you were loving looking at directories in vscode)