only get files if dir is there