Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-02-2009, 03:17 PM
Bpfingsten Bpfingsten is online now
Registered User
 
Join Date: 10-02-2009
Posts: 1
Question Copy Files Incremental Copy Problem

Hi, I am trying to use the 'Copy Files' action with the 'Incremental Copy' option. The source and destination folders are on different servers, and both contain about 6000 files. The files should be identical, with the exact same size and timestamp.

I wanted to test and make sure both folders contained the exact same files, so, I ran the copy with 'Do not copy, only display files and folders that would be copied or deleted' checked. I ran the copy 5 times a different file list was returned as being 'Different'.

I checked the files on the two servers and they were the exact same size with the exact same timestamp.

My questions are:

What criteria does 'Copy Files' look at to determine if the files are 'Different'?

How did I get a different file list each time I ran 'Copy Files' even though nothing had changed in either directory?

Why would a file show up as different even though it has the same size and timestamp in both locations?

Any help would be greatly appreciated!!

Thanks,
Barry
Reply With Quote
  #2  
Old 10-02-2009, 03:50 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
The Copy Files action compares the file timestamps (as reported by the FindFirstFile API) and sizes (as reported by the GetFileSize API) to determine if the files are different.

If either of those API calls return different values or fail, the file will be considered different. It does open the file (using CreateFile with GENERIC_READ, OPEN_EXISTING, and FILE_SHARE_READ) to get a handle for the GetFileSize call, so if that failed (for instance, if a file was locked from opening for reading by another app), that would result in it treating the files as different. We'll add a request to our list to investigate using the values returned by FindFirstFile instead (although this might also fail if the file is locked or for other reasons [network connectivity issues?]).

We'll also see about failing the step if any of the APIs used for comparing fails, reporting the error message in the build log.

http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
Reply With Quote
  #3  
Old 10-14-2009, 06:15 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
This is implemented in v7.2a.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 01:11 PM.


Copyright © 1999-2023 Kinook Software, Inc.