Creates a symbolic link to another file in the vault.
ANSI (Cross Platform) int CreateLink(const char* lpszLinkName, const char* lpszDestinationName); Unicode (Windows) INT CreateLink(LPCWSTR lpszLinkName, LPCWSTR lpszDestinationName);
- (void)createLink:(NSString*)linkName :(NSString*)destinationName;
#define MID_CBVAULT_CREATELINK 12 CBFSVAULT_EXTERNAL int CBFSVAULT_CALL CBFSVault_CBVault_Do(void *lpObj, int methid, int cparam, void *param, int cbparam, int64 *lpllVal);
This method creates a new symbolic link named LinkName that points to the file specified by DestinationName.
The value passed for LinkName must be a vault-local absolute path. The value passed for DestinationName must also be a vault-local path, but may be absolute or relative to LinkName.
Note: This method can only be called when Active is true, and cannot be called within events.
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)