I checked out a file using the following, similar to the VaultCmdLine code
client.CheckOut(vaultFile,VaultCheckOutType.Exclusive,"");
client.Get(vaultFile, true, MakeWritableType.MakeAllFilesWritable, SetFileTimeType.CheckIn,MergeType.OverwriteWorkingCopy);
How then can I tell where it put the file locally?
Thanks,
Jim
Vault Client API - Get local file location for a checked out
Moderator: SourceGear
Get will always put the files it downloads in the working folder of its parent folder. If the parent folder doesn't have a working folder explicitly set for it, it uses the inherited path of its parent, and so on.
You can map any VaultClientFile to its path on disk by calling client.TreeCache.PhysicalPath(vaultFile), which will return a string.
You can map any VaultClientFile to its path on disk by calling client.TreeCache.PhysicalPath(vaultFile), which will return a string.
Shaw Terwilliger
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
How to check back in?
I have modified the file locally and now want to check it back in. I call get InternalChangeSet_GetItems, find the one that corresponds to my file, and add that to the collection that is passed to the Commit. But it does not do anything???
-Jim
-Jim