With little effort I am able to add and commit files to vault using this code:
Code: Select all
ChangeSetItemColl changeSetItemColl = ServerOperations.ProcessCommandAdd(pathDirectory, new[] { path });
ServerOperations.ProcessCommandCommit(changeSetItemColl, UnchangedHandler.Checkin, false, LocalCopyType.Leave, false);
Code: Select all
ChangeSetItemColl changeSetItemColl = ServerOperations.ProcessCommandAdd(pathDirectory); // Add the path of the directory that we want to commit.
ServerOperations.ProcessCommandCommit(changeSetItemColl, UnchangedHandler.Checkin, false, LocalCopyType.Leave, false);
Thanks