Specifications
The Source Control Integration API 355
To find out if an invocation of this function is a move or a rename, check the parent paths of the
two input values; if they are the same, the operation is a rename.
Arguments
void *connectionData, const char *oldRemotePath, const char *newRemotePath
• connectionData is a pointer to the agent’s data that passed into Dreamweaver during the
Connect() call.
• oldRemotePath is a remote file or folder path name to rename.
• newRemotePath is the remote path name of the new name for the file or folder.
Returns
true if successful; false otherwise.
bool SCS_ItemExists()
Description
Determines whether a file or folder exists on the server.
Arguments
void *connectionData, const char *remotePath
• connectionData is a pointer to the agent’s data that passed into Dreamweaver during the
Connect() call.
• remotePath is a remote file or folder path name.
Returns
true if exists, false otherwise.
The Source Control Integration API optional functions
The Source Control Integration API has required and optional functions. The functions in this
section are optional.
bool SCS_GetConnectionInfo()
Description
Displays a dialog box to let the user change or set the connection information for this site. Does
not make the connection. This function is called when the user clicks the Settings button in the
Remote Info section of the Edit Sites dialog box.
Arguments
void **connectionData, const char siteName[64]
• connectionData is a handle to data that the agent wants Dreamweaver to pass it when calling
other API functions.
• siteName is a string that points to the name of the site. The name cannot exceed 64 characters.
Returns
true if successful; false otherwise.