SAWVSDK::addFiles

Description

Adds local files to the specified directory path on Dynamsoft SourceAnywhere for VSS server.

Syntax

int addFiles(
        StringArray
strAryFileToAdd,
        StringArray
strAryFileOnServer,
        IntegerArray iAryEnumFileType,
        boolean
bUseReadOnlyForFileNotCheckedOut,
        boolean
bStoreOnlyLatestVersion,
        int
iEnumAddFileDeletedCopyHandling,
        int
iEnumEOL,
        String
strComment,
        BasicDataObject
bdobCanceled,
        BasicDataObject
bdostrError,
        ResultArray aryResult
);

Parameters

strAryFileToAdd
[in] Specifies the names of files to be added.

strAryFileOnServer
[in] Specifies the name or IP of Dynamsoft SourceAnywhere for VSS server.

iAryEnumFileType
[in] Specifies the type of the file.

bUseReadOnlyForFileNotCheckedout
[in] Specifies whether to use read-only flag on files that are not checked out.

bStoreOnlyLatestVersion
[in] Specifies whether to store only the latest version of files on server.

iEnumAddFileDeletedCopyHandling
[in] Specifies how to handle the deleted copy if a deleted copy of the file exists in the database.

iEnumEOL
[in] Specifies which end-of-line terminator is to be used for files.

strComment
[in] Specifies the comment for the add.

bdobCanceled
[out] If the method fails, returns whether the operation is canceled.

bdostrError
[out] Returns the description of the result. If the operation succeeds, returns 'Completed'. If the operation fails, returns the error information.

aryResult
[out] Returns the result information set of the operation.

Return Value

If the method succeeds, returns the value of ESAWV_SUCCESS. If the method fails, returns other error codes.

See Also

Note: If there are the files on server with the same name as the files to be added and the parameter "iEnumAddFileDeletedCopyHandling" is set to the enum "AskAddDeletedCopy", the method "PromptRecoverOrPurgeDeletedCopy" will be triggered.