List Option (-Ls) - HP NonStop Data Transformation Engine FTP Adapter Reference Manual

Ftp adapter
Table of Contents

Advertisement

Chapter 3 - FTP Commands

List Option (-LS)

Use the List Option adapter command (-
a user supplied sorting preference.
This command is used in conjunction with the existing FTP URL (
command and supports a subset of FTP options that control the order in which the
files are transferred
This is an optional command.
-LS sort_type
The adapter passes the
argument when it lists the files in the directory. One of three events happens at
this point:
FTP server accepts the option and lists the files in the specified order
FTP server ignores the option and lists the files in the default order
FTP server rejects the option and the adapter returns an error
For example:
-URL
The
command is issued by the adapter before any file transfer, so that its
-LS
results are used to control the order of the file transfer. In the example above, all
files from
mydir
Allowable command options include:
Option
t
r
tr
rt
All other list options result in the error message: invalid ls option that is
logged in the adapter trace file.
Note
The List Option (
some ftp servers.
.
command value to a remote FTP server as an
-LS
ftp://testftp:test@host/mydir –ls tr
would be transferred, the oldest file being transferred first.
Description
Sorts by time stamp.
Reverses the order of sort.
Reverses the order of sort by time stamp.
Same as
-LS tr
) command options, (
-LS
F T P A d a p t e r R e f e r e n c e G u i d e
) to allow files to be retrieved based on
LS
.
,
,
, and
t
r
tr
2 2
List of Commands
) adapter
-URL
) may be ignored by
rt

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nonstop transformation engine

Table of Contents