tfFtpMkd

Jump to: navigation, search

Table of Contents >> Application Reference >> FTP Client API


#include <trsocket.h>


int tfFtpMkd (
ttUserFtpHandle ftpUserHandle,
char * directoryPathNamePtr,
char * bufferPtr,
char * bufferSize
);


Function Description

This function creates a directory on the remote file system.


Parameters

  • ftpUserHandle
    The FTP session handle.
  • directoryPathNamePtr
    A pointer to the string containing the new directory name.
  • bufferPtr
    A pointer to the buffer to receive the result from the MKD command.
  • bufferSize
    A pointer to the size of the buffer pointed to by 'bufferPtr'.


Returns

  • TM_ENOERROR
    Success.
  • TM_WOULDBLOCK
    This FTP session is non-blocking and the call did not complete.
  • TM_EACCES
    Previous command did not complete.
  • TM_ENOTCONN
    The user is not currently connected to a FTP server.
  • TM_ENOTLOGIN
    User is not currently logged in.
  • TM_EINVAL
    Invalid FTP session pointer.
  • TM_FTP_SYNTAXCMD
    Syntax error, command unrecognized.
  • TM_FTP_SYNTAXARG
    Syntax error in parameters or arguments.
  • TM_FTP_NOCMD
    Command not implemented.
  • TM_FTP_SERVNAVAIL
    Service not available, closing FTP connection.
  • TM_FTP_FILENAME
    Request action not taken: file name not allowed.
  • TM_FTP_NOTLOGIN
    Not logged in.


Table of Contents >> Application Reference >> FTP Client API