Hi there,
I'd like to use the briefcase API to move every document and folder from one repository to another. I don't get any errors but nothing is transferred either.
I've used other code to replicate users and groups.
There aren't any External Tables (but feel free to include code for that).
Private Function fnReplicateFolders() As Long
Dim oBCExp As New BriefcaseExporter(m_oSourceSession)
Dim oBCImp As New BriefcaseImporter(m_oDestSession)
Dim oEntryInfo As EntryInfo = Entry.GetEntryInfo(1, m_oDestSession)
Dim oMemStream As System.IO.Stream
oBCExp.BriefcaseName = "all-the-things"
'oBCExp.CompressionLevel = 9
oBCExp.IncludeVersionHistory = False
oBCExp.PreserveFolderStructure = True
oBCExp.AddEntry(oEntryInfo, BriefcaseSourceOptions.RecurseFolders)
oMemStream = oBCExp.Export()
oMemStream.Flush()
oMemStream.Seek(0, 0)
oBCImp.DestinationFolder = Folder.GetRootFolder(m_oDestSession)
oBCImp.Import(oMemStream)
Return 0 'oMemStream.Length
End Function
-Ben