FTP File Exists Task

Your rating: None Average: 3.3 (3 votes)

Overview

Script task to verify for existence of remote FTP file. It has the following parameters:

  • FtpConnection – secure FTP connection manager selection (SFTP, FTPS).
  • RemoteFile – path of remote file to check.
  • CheckLocal – if true, check additional remote file attributes against a local file.
  • LocalFile – path of local file to compare against.
  • CheckSize – if true, include verification of remote file size against local file size.
  • CheckTime – if true, include verification of remote file modification time against local file modification time.

If the verification process is successful, the task result is success. Otherwise it is to set failure and you can take further appropriate actions in your SSIS workflow.

Requirements

Depends on COZYROC Script Task Plus component for implementing parameters user interface.
Depends on COZYROC SSH Connection Manager or FTPS Connection Manager for securely accessing remote FTP server.
Requires installation of COZYROC SSIS+ 1.3 library.

Library references

  • System
  • System.Data
  • Microsoft.SqlServer.ScriptTask
  • Microsoft.SqlServer.ManagedDTS
  • CozyRoc.SSISPlus

ScriptMain