fsDirCreate

Creates an FTP server directory.

Syntax:

fsDirCreate( client-handle, server-path )

Parameters:

(s) client-handle: Extender client handle.

(s) server-path : full path of the FTP server directory path to create.

Returns:

(i) 1 if successful.

Use this function to create a directory or directories on an FTP server's file system.  The function's second parameter must be the a full directory path.  Any nonexistent directories in the indicated path are created. The directory path is created from the current-working-directory as defined by the server for the logged on user.

 

The function generates an error if the last directory in the path already exists.

Example:
  AddExtender('ilcfs44i.dll',0,'ilcfs64i.dll')
  host = 'test.example.com'
  port = 21
  user = 'demo'
  pswd  = 'password'
  
  ; Create a client
  client = fsClientInit(host, port, user, pswd)
  
  ; Creates all directories from the current working
  ; directory to the 'morestuff' directory
  fsDirCreate(Client, "test/dummy/stuff/morestuff")
  
  ; Disconnect from the server
  fsClientDelete(client)
See Also:

fsDirDelete, fsDirList