:SetFileMode()


Class

     aprFTP()

 

Syntax

     :SetFileMode( nMode, [hSession] ) -> lSuccess

 

Parameters

 

nMode

Numeric. Specifies the default type of data transfer mode for files being opened or created on the remote server. See table below for possible values.

 

hSession

Optional: If hSession is not passed, the value in :Session will be used

 

nMode: This parameter can be one of the following values.

Value

Description

FILE_MODE_STREAM

The data is transmitted as a stream of bytes. This is the default client transfer mode.

FILE_MODE_BLOCK

The data is transmitted as a series of data blocks preceeded by one or more header bytes. This transfer mode is currently not supported.

FILE_MODE_COMPRESSED

The data is transmitted in compressed form. This transfer mode is currently not supported.

 

Return

Logical indicating Success.

Returns .T. if the operation succeeds, otherwise returns .F.

To get further error information see :nErr and :cErr

 

Description

The :SetFileMode() method sets the default file transfer mode for the current client session.

The file transfer mode should be set before a file is opened or created on the remote server. Once the transfer mode is set, it is in effect for all files that are subsequently opened or created.

 

See Also

:OpenFile(), :SetFileStructure(), :SetFileType(), :SetPassiveMode()