Chapter 3 - FTP Commands | List of Commands |
List Option (-LS)
Use the List Option adapter command
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 ftp://testftp:test@host/mydir –ls tr
The
Allowable command options include:
Option Description
tSorts by time stamp.
rReverses the order of sort.
tr | Reverses the order of sort by time stamp. |
|
|
rt | Same as |
|
|
All other list options result in the error message: invalid ls option that is logged in the adapter trace file.
Note The List Option
F T P A d a p t e r R e f e r e n c e G u i d e
2 2