new detect feature for files

Signed-off-by: Lolo <lorenz.haenggi@bluewin.ch>