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?