IPWorks Cloud 2020 C++ Edition

Questions / Feedback?

MoveResource Method

Moves a resource.

Syntax

ANSI (Cross Platform)
int MoveResource(const char* lpszFromResource, const char* lpszToResourcePath);

Unicode (Windows)
INT MoveResource(LPCWSTR lpszFromResource, LPCWSTR lpszToResourcePath);
- (void)moveResource:(NSString*)fromResource :(NSString*)toResourcePath;
#define MID_DROPBOX_MOVERESOURCE 17

IPWORKSCLOUD_EXTERNAL int IPWORKSCLOUD_CALL IPWorksCloud_Dropbox_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

This method moves the resource FromResource to a new path ToResourcePath.

FromResource must be a path, an Id-based relative path, or a resource Id. ToResourcePath must be a path or an Id-based relative path (it must always end with the name of the file/folder resource being moved).

The AllowOwnershipTransfers configuration setting must be enabled before calling this method if a move operation would result in the current user transferring their ownership to another user (or to a team).

The RenameIfExists configuration setting may be enabled before calling this method to have the server automatically resolve naming conflicts.

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.)

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 C++ Edition - Version 20.0 [Build 8265]