Make Directory (-MKD)

Use the Make Directory adapter command (-MKD) to create a directory. For example, if a file specified in a PUT operation belongs in a directory that does not exist, the -MKD command creates the new directory.

If the -MKD command is not specified and the file specified on a PUT operation points to a directory that does not exist, the adapter will fail.

This is an optional command.

-MKD

For example:

PUT("FTP", "-URL ftp://jdoe:secret@server1/some/folder/ data.txt -MKD", "Some data")

will force jdoe/some and then the jdoe/some/folder to be created. A new file called data.txt is added to this new directory.