check if file got passed as input dir