Ignoring exception till whole loop ends to retrieve all the files from directory to overwrite.