The FTP Object

Description

The FTP Object of caravan is an extremely useful object which can access remote FTP servers and files. Caravan script can create an ftp object and make it possible to access files on remote ftp servers. Eventually, folder and ftp objects will have similar syntax.

Syntax

ftp "name"="site"

FTP Object Properties

Filespec

Description

Pattern to match the filename-example: *.html, a*.doc etc. Default filename is *.*

Syntax

ftpsite(filespec)="*.doc"

User

Description

To set the user to the FTP object

Syntax

ftpsite(user)=username

Password

Description

To set the password for the FTP object

Syntax

ftpsite(password)=password

Filename

Description

Ftp filename to be set to "filename". If file does not exists the
ftp filename is set to null.

Syntax

ftpsite(filename)="filename"

Folder

Description

Ftp remote directory to change to the specified "directoryname".

Syntax

ftpsite(folder)="foldername"

File

Description

File to be uploaded."file" can be a file name or a file value like mytable(picture).Causes the file to be uploaded and the current filename will be uploaded filename, if the upload
is successfull.

Syntax

ftpsite(file)="file"

login

Description

Explicit login command, user and password has to be set. Usually login is automatic.

Syntax

ftpsite(login)

Extension

Description

It gives the file extension of the current file.If the following values are nonexistent, it means that there are no more matching entries or findnext is yet to be invoked.

Syntax

ftpsite(extension)

Filename

Description

It gives the current filename

Syntax

ftpsite(filename)

time

Description

Gives date of the file in integer format

Syntax

time t

t(time)=ftpsite(time)

size

Description

Gives file size

Syntax

ftpsite(size)

Findnext

Description

Goes to next file

Syntax

ftpsite(findnext)

folder

Description

Gives the current working directory

Syntax

ftpsite(folder)

path

Description

Gives the current working directory with full path

Syntax

ftpsite(path)

file

Description

dowloads the current file

Syntax

ftpsite(file)

Back

 

 
© Copyright 2002 Niti Telecom Consultancy. All rights reserved