Updating a shared file
Posted: Thu Jan 19, 2012 9:13 am
I have code that looks something like:
Which works just dandy most of the time. However, when the file in question is a shared file, the call to FindFileRecursive returns null, presumably because the thing that is there is a "soft link" rather than a "real" file. Is there a nice way to fix this?
Code: Select all
private void UpgradeFile(string localPath, VaultClientFolder root){
string remotePath = m_Client.TreeCache.GetCorrespondingRepositoryPath(localPath);
VaultClientFile file = root.FindFileRecursive(remotePath);
m_Client.Get(file, false, MakeWritableType.MakeAllFilesWritable, SetFileTimeType.Current, MergeType.Unspecified, null);
}
Which works just dandy most of the time. However, when the file in question is a shared file, the call to FindFileRecursive returns null, presumably because the thing that is there is a "soft link" rather than a "real" file. Is there a nice way to fix this?