carta
FtpAccess(3)

FtpAccess3

Open a file or directory on the remote system.

Parameters

path

Specifies the name of the remote file or directory to open.

typ

Specifies the type of transfer to be performed. FTPLIB_DIR performs a terse directory. FTPLIB_DIR_VERBOSE performs a verbose directory. FTPLIB_FILE_READ opens a remote file for reading. FTPLIB_FILE_WRITE creates a remote file and readies it for writing.

mode

Specifies the transfer mode as FTPLIB_ASCII or FTPLIB_IMAGE.

nControl

A handle returned by FtpConnect().

nData

Specifies the address to store a pointer to the created data handle.

Overview

FtpAccess() opens a remote file or directory and returns a handle for the calling program to use to transfer data.

Return value

Returns 1 if successful or 0 on error.

From ftplib-dev 3.1-1-9 in Debian 8 (Jessie). Parsed by carta from the page's man source.