callback function if file exists under repositoryes dir