Sun Adapter for Batch User's Guide

Post Transfer (BatchFTP Connectivity Map)

Post-transfer operations are those performed on remote (ftp) site after the real ftp transfer. For more information on this feature, see Pre/Post File Transfer Commands.

The Post Transfer section of the BatchFTP Connectivity Map properties contains the top-level parameters displayed in this table.

Table 6 Connectivity Map - BatchFTP - Post Transfer

Name 

Description 

Required Value 

Post Directory Name

Specifies the directory name (path) on the external system to which a file is renamed. The value can be a literal or pattern name.

For an outbound transfer (to destination), the directory is created if it does not already exist. This setting is only for the Rename operation of the Post Transfer Command parameter.

Special characters are allowed, for example, the pattern %f indicates the original working directory name. The expansion of any special characters is carried out each time this parameter is used.

See Table 6.

See Using Name Patterns.

Enter the exact name of the directory (with the path), enter a pattern name, or select one of the following values: 

  • %f

  • %f%#

  • %f.%y%y%y%y%M%M%d

    %d.%h%h%m%m%s%s%S%S%S

  • %f.rename

Post Directory Name Is Pattern

Specifies whether the pattern entered for the directory represents a literal or a name pattern, as follows:

  • No: indicates that the name entered is a literal, an exact match.

  • Yes: indicates that the name value you enter is assumed to be a name pattern.

    See Table 6.

Select Yes or No.

The configured default is Yes.

Post File Name

Specifies the file name to which a file on an external system is renamed. The value represents the file name. The value can be a literal, or pattern name.

This setting is only for Rename operation of Post Transfer Command parameter.

Special characters are allowed. For example, the pattern %f indicates the original working file name.

See Table 6.

See Using Name Patterns.

Enter the exact name of the file, enter a pattern name, or select one of the following values: 

  • %f

  • %f.%y%y%y%y%M%M%d%d.

    %h%h%m%m%s%s%S%S%S

  • %f.rename

Post File Name Is Pattern

Specifies whether the pattern entered for the file name is interpreted as literal or as a name pattern , as follows:

  • No: indicates that the name entered is literal, an exact match. No pattern matching or name expansion is done.

  • Yes: indicates that the name value you enter is a name pattern.

    See Table 6.

Select Yes or No.

The configured default is Yes

Post Transfer Command

Allows you to execute a desired action directly after the actual file transfer or during the “commit” phase.

For an inbound transfer, you can mark the transferred file as “consumed” by making an automatic backup (Rename) or by destroying it permanently (Delete). For an outbound transfer, you can make the transferred file available to other clients by renaming it. The options are:

  • Rename: Rename the transferred file.

  • Delete: Delete the transferred file (inbound transfers only).

  • None: Do nothing.


    Note –

    When you are using Rename , if the destination file exists, different FTP servers can behave differently. For example, on some UNIX FTP servers, the destination file is overwritten without question. That is, no error or warning message is given. On other FTP servers, a Windows XP server for example, the system generates an error that results in exceptions being thrown in the called OTD method.Be sure you are familiar with the native behavior of the corresponding FTP server. If you are in doubt, try the action at the command prompt. If the action displays an error message, it is likely to result in an exceptions being thrown in the Collaboration.


Select Rename, Delete, or None.

The configured default is None.