Ok, maybe i should explaine a bit further as it appears that there are a few different way to accomplish this.
I have two arrays. RemoteFiles and LocalFiles. So I would like to do a compare against them to see if the files are the same. If they are remove them from the Remotefiles array.
Note the RemoteFiles have a time stamp added to the file name as I am checking to see if they have been copied over before.
Does this help?