If a file of same name is downloaded twice then the program gives FileExistsError and file sorting isn't carried out.