scan directory to get files