Documentation Center

  • Trial Software
  • Product Updates

mkdir

Class: FTP

Create folder on FTP server

Syntax

mkdir(ftpobj,folder)

Description

mkdir(ftpobj,folder) creates the specified folder on the FTP server associated with ftpobj.

Input Arguments

ftpobj

FTP object created by ftp.

folder

String enclosed in single quotation marks that specifies a path relative to the current folder on the FTP server.

Examples

Suppose that a hypothetical host, ftp.testsite.com, contains a folder named testfolder. Connect to the server and add a subfolder:

test=ftp('ftp.testsite.com');
mkdir(test,'testfolder/newfolder');
close(test);

See Also

| |

Was this topic helpful?