Is this a bug or not?
I am writing a backup program, where thousands of folders & files must be backed up regularly, and will need to do an incremental backup to an already existing one, only overwriting modified files and copying new ones.
I can't seem to use the File.Copy command, as it can only overwrite files if they have the same name, not if they've been modified, and I can't get its callback function to do it either.Any ideas?
The File.Install command does support overwriting of files, but is much slower.
Take the following scenerio:-
File.Copy(Source, Destination, true, false, false, true, nil);, (where Source and Destination are pre-defined elsewhere in the script and are proven to be OK), and where there are no new/modified files to copy, will scan approx 16,000 files in 65 seconds.
File.Install(Source, Destination, FILE_INSTALL_NEVER, false, true, nil, nil);, will take 22 mins to do the same scan.
Surely, these 2 commands are doing the same task, so why is there such a time difference in their functionality?
I think IR needs to do some thorough checking/testing on this.

Reply With Quote


