SAWHSDK::getLatestProject
Description
Retrieves the latest version of a project from the server.
Syntax
int getLatestProject(
String strProjectToGet,
String strLocalFolder,
boolean bRecursive,
boolean bMakeWritable,
int
enumModifiedFileHandling,
int enumEOL,
int enumCompareFileBy,
int enumSetLocalFileTime,
SDiffMergeParameters
stDiffMergeParameters,
BaseDataObject bdobCandeled,
BaseDataObject bdostrError,
ItemOperateResultArray
aryOperatorResult
);
Parameters
strProjectToGet
[in] Specifies the full name of the project to be retrieved.
strLocalDirectory
[in] Specifies the path of the local directory to which the server project
will be
retrieved.
bRecursive
[in] Specifies whether the project is to be retrieved recursively.
bMakeWritable
[in] Specifies whether to make the files writable after being retrieved.
enumModifiedFileHandling
[in] Specifies how to handle the local files if writable copies of them exist in
the local disk.
enumEOL
[in] Specifies which end-of-line terminator is to be used.
enumCompareFileBy
[in] Specifies how to determine if the local copy of the file is up-to-date, by checksum or date/time.
enumSetLocalFileTime
[in] Specifies the type of time to be assigned to the local files.
stDiffMergeParameters
[in] Specifies the parameters for diff or merge.
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.
aryOperatorResult
[out] Returns the result information set of the operation.
Return Value
If the method succeeds, returns 0. If the method fails, returns other error codes.
See Also
Note: If local copies of the files exist and the parameter "enumModifiedFileHandling" is set to the enum "enumAskModifiedFile", the method "PromptLeaveOrReplaceWritableFile()" will be triggered.