MakeDirectory Method
Makes a directory.
Syntax
ANSI (Cross Platform) char* MakeDirectory(const char* lpszNewDirPath); Unicode (Windows) LPWSTR MakeDirectory(LPCWSTR lpszNewDirPath);
- (NSString*)makeDirectory:(NSString*)newDirPath;
#define MID_HADOOPDFS_MAKEDIRECTORY 13 IPWORKSCLOUD_EXTERNAL int IPWORKSCLOUD_CALL IPWorksCloud_HadoopDFS_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
This method makes a new directory at NewDirPath and returns the full path of the new directory. Any non-existent parent directories will also be created.
If the CreatePermission configuration setting is non-empty, the directory will be created with the permission it specifies. Otherwise, the server's default (755) will be used.
Error Handling (C++)
This method returns a String value; after it returns, call the GetLastErrorCode() method to obtain its 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.