FESI language extensions - File I/O
Author: Jean-MarcLugrin
Description: Describe the FESI EcmaScript interpreter extensions to access File I/O capabilities
Keywords: EcmaScript, JavaScript, JScript, Java, extension

FesiFTP - The ftp object

### Global objects and function

`FesiFTP` installs the global object `ftp` (described below) and a version of `write` and `writeln` which display the result text in the log window.

### ftp object

The following properties are supported by the `ftp` object:

`lastReply`
  Last message returned by some operation, "" if none.Can only be read.
`lastError`
  Last error returned by some operations, null if none. Can only be read.
`connected`
  Return true if currently connected, false otherwise. Can only be read
`defaultServer`
  Name of the default server to use during connection. Defaults to empty.
`defaultUsername`
  Default user name to use during a connection. Defaults to "anonymous".
`defaultPassword`
  Default password to use during a connection. defaults to "anonymous". In principle this should be the mail address when using anonymous ftp.
`server`
  Name of the server used for last connection. Can only be read..
`username`
  Username used for the last connection. Can only be read..
`password`
  Password used for last connection. Can only be read.

The defaults are usually set in the startup script, or modified after a `doConnect` command has been sent by the script.

In addition the ftp object supports low level access routines and high level access routines.

Back to main FesiFTP page

Last update: 18 July 1998