CRC Check

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
Tsukasa
Posts: 4
Joined: Fri Jan 04, 2013 9:08 am

CRC Check

Post by Tsukasa » Fri Apr 05, 2013 6:46 am

How do I use CRC checking instead of looking at datetime through the api?

This work's if I set it in the client and then use my application but I would like to make sure this option is set through my application.

I've seen a post where you can set this at VaultClientFile but I'm checking in an entire directory and don't feel I should have to pass that to VaultClientFile first and then checkin all of the files.

My directories contain 3,000+ files so the directory checkin seems like the better option.

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Re: CRC Check

Post by jclausius » Fri Apr 05, 2013 9:11 am

If your code is currently logged in, you should have access to the Client Instance and UserOptions.

Try calling ClientInstance.UserOptions.SetOption(VaultOptions.DetectModifiedFilesWithCRCs, "True").
And then call ClientInstance.UpdateWorkingFolderOptionsFromUserOptions() to force those options on your working folders.

Assuming this goes along with your next post, hopefully those xml files w/ the same contents, but different timestamps are now longer listed as edited.
Jeff Clausius
SourceGear

Post Reply