I have the same issue again, this time in Vault2012 and Vault2011. What are the conditions for a file to be up to date? I keep getting the out of date symbol in Vault when I use download latest. It is no longer enough to just set the creation time. Please help!
The creation date and the read-only bit should be the only 2 things you need to set. Here is an article on the topic, with code samples included.
Isn't that weird?
I used this:
IO.File.SetCreationTime(FileName, File.CreateDate)
IO.File.SetAttributes(FileName, IO.FileAttributes.ReadOnly)
Which gave me that remark that the local file was different.
Now I use this (from your website):
Dim info As System.IO.FileInfo = NewFileInfo(localPath)
info.CreationTime = file.CreateDate
info.Attributes = info.Attributes OrFileAttributes.[ReadOnly]
And now it works?! Beats me... Thanks anyway!
IO.File.SetAttributes(FileName, IO.FileAttributes.ReadOnly)
... is not the same as ...
info.Attributes = info.Attributes Or FileAttributes.[ReadOnly]
True, it's not. I just copied and tested the code from Rene-j which worked. I never looked long enough at the code to realize that I removed all attributes except for one. But the first quick try out worked and I never looked at it again. It worked fine for 2010, but not for 2011 or 2012, so why does that differ for Vault? Are there other attributes that a file should have?