acquire files from vault, but doesn't download when (older) file already exists
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all, i'm having trouble with my VB code.
I'm trying to get all the latest design data from my vault, but it only downloads the files locally when it can't find it. If there is an out of date file, it doesn't download it (It somehow reads that the current checked in file is the same as local).
My guess is that i don't call the file with the right methode, but perhapse somebody recognizes the issue.
If folders IsNot Nothing AndAlso folders.Any() Then
For Each folder As VDF.Vault.Currency.Entities.Folder In folders
If folder.FullName.Contains("$/Settings") Then
Dim childFiles As Autodesk.Connectivity.WebServices.File() = vConnection.WebServiceManager.DocumentService.GetLatestFilesByFolderId(folder.Id, False)
If childFiles IsNot Nothing Then
For Each file As Autodesk.Connectivity.WebServices.File In childFiles
Dim FileItter = New VDF.Vault.Currency.Entities.FileIteration(vConnection, file)
settings.AddFileToAcquire(FileItter, VDF.Vault.Settings.AcquireFilesSettings.AcquisitionOption.Download)
Next
End If
End If
Next
End If