The SSIS FTP Task is used to perform different kind of operations on Files and Folders (or Directories). In this article we will show you the steps involved in configuring the SSIS FTP task create local directory with example.
Below screenshot shows you the data inside the local file system. Our task is to Create new folder or directory inside the File System Folder inside E Drive.
SSIS FTP Task Create Local Directory
In order to create directory or folder in our local computer, First Drag and drop the FTP Task into the Control Flow region and rename it as SSIS FTP Task Create Local Directory
Double click on it will open the FTP Task Editor to configure it. Please change the task name according to your requirements and provide the valid description.
Within the Connection section, We have one property called FTPConnection. By clicking on the drop down arrow will show you the already created FTP Connections (If any) or please click on the <New Connection..> option to create one. In this example, We are using the already created Connection. Please refer SSIS FTP Connection Manager article to understand the connection settings
Please click on the File Transfer tab to configure the FTP operations. Following screenshot will show you the available properties in this tab.
The SSIS FTP task supports eight different operation on Files and Folders. In this example we want to create a local folder so, We are selecting the Create Local Directory option from the Operations property
For the time being we are declaring the Local path manually but in real-time, we recommend using variables. If we set the IsLocalPathVariable to False, we have to configure the Source Connection using LocalPath Property. If you already created the File Connection Manager you can simply select it from the drop down list otherwise, You have to create by selecting <New Connection..>. as shown in below screenshot.
Once you selected the <New Connection..> for files and folders, File Connection Manager Editor will be opened in new window. Using this editor we have to create new folder in our local file system. To do so, Please click on the Browse button to select the location from the file system.
From the below screenshot you can observe that, We selected the NEW FTP FOLDER as the local folder name. Click OK button to select it.
OverwriteDetination: This property has two options: True and False. If we set this property to true then SSIS FTP Task will overwrite the existing folder (if any) in the Destination path.
Click OK to finish configuring the SSIS FTP task create local directory package. Let’s run and see whether we successfully Created the new folder in our local File System or not.
Well, We successfully created new folder
Thank You for Visiting Our Blog.