RemoveDirectory Method
Remove the specified directory.
Syntax
ANSI (Cross Platform) int RemoveDirectory(const char* lpszDirName); Unicode (Windows) INT RemoveDirectory(LPCWSTR lpszDirName);
- (void)removeDirectory:(NSString*)dirName;
#define MID_CLOUDSTORAGE_REMOVEDIRECTORY 8 IPWORKSCLOUD_EXTERNAL int IPWORKSCLOUD_CALL IPWorksCloud_CloudStorage_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
This method removes the directory specified by the DirName parameter. DirName may be either an absolute path, or a path relative to RemotePath.
Note: The directory and all of its contents will be deleted when calling this method. (With the exception of non-root-level directories for the spAzureFile (11) ServiceProvider; such directories can only be deleted if they are empty.)
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.)