add file detector

Signed-off-by: Jacob <kula_dkj@hotmail.com>
add file detector