Common API

Overview

These public interfaces are shared across various SSIS+ components. They are provided for implementing advanced functionality in your scripts. In order for you to use these interfaces in your project, you have to reference CozyRoc.SSISPlus.dll library.

IFileInfo (1.2 SR-2)

This interface is used to retrieve extended remote file information.

Name property (string)
Returns file name.
Size property (long)
Returns file size.
ModifiedTime property (DateTime)
Returns file modification time.
IsDirectory property (bool)
Returns true if directory.

IFtpClient (1.3)

This interface is used to access services provided by SFTP and FTPS servers.

SetWorkingDirectory method

Sets current remote working directory. These are the method parameters:

  • path (string) - remote directory path.
GetWorkingDirectory method

Get current remote working directory. The method result is the remote path.

IsDirectory method

Returns true if specified remote path is directory. These are the method parameters:

  • path (string) - remote path.
SendFile method

Uploads files to remote server. These are the method parameters:

  • src (string) - path to source local file(s).
  • dest (string) - path to destination remote directory.
  • overwrite (bool) - set to true, if you want to overwrite existing remote files.
SendStream method

Uploads stream of data to remote server. These are the method parameters:

  • src (Stream) - stream of data to upload.
  • dest (string) - path to destination remote file.
ReceiveFile method

Downloads files from remote server. These are the method parameters:

  • src (string) - path to source remote file(s).
  • dest (string) - path to destination local directory.
  • overwrite (bool) - set to true, if you want to overwrite existing local files.
ReceiveStream method

Downloads stream of data from remote server. The method result is Stream to source remote file. These are the method parameters:

  • src (string) - path to source remote file.
SetFileTime method

Sets remote file modified time. These are the method parameters:

  • file (string) - path to remote file.
  • time (DateTime) - new time of remote file.
CreateDirectory method

Creates remote directory. These are the method parameters:

  • directory (string) - remote directory path.
DeleteDirectory method

Deletes remote directory. These are the method parameters:

  • directory (string) - remote directory path.
DeleteFile method

Deletes remote file. These are the method parameters:

  • file (string) - path to remote file.
RenameFile method

Renames remote file. These are the method parameters:

  • oldFile (string) - path to remote file to rename.
  • newFile (string) - new file name path.
GetListing method

Gets listing of remote files. The method result is array of IFileInfo objects. These are the method parameters:

  • searchPath (string) - path to remote directory you want to retrieve the listing for.
  • isWildcard (bool) - specifies if searchPath contains wildcard expression or it is simply a remote path.
  • includeDir (bool) - specifies if result listing contains remote directories.