Added code to check that a list of files was obtained from the remote
to stop it deleting everything if that step failed!