FileSystemWorkshop

FileSystemWorkshop

CreateDirectory Overview

CreateDirectory is used to create a directory on target file system. You should use this service if the directory does not exists. The service will create the directory on application server by default, unless you specify the target server name in the directory path.

This can be helpful when you need to dynamically create a directory based on the user or entity the files you wish to save are associated with. For example, saving images or message attachments that are stored in a directory that correspond to the particular message/userid it belongs to.

Create Directory on other server

This an example that we create a directory on another server. Please note that you need to put the server name at the beginning. You can also use IP address instead of the server name.

The format is:

\\[Server Name or IP]\C$\dir1

From the file explorer, you can see the directory is created on target server.