L_InetFtpGetCurrentDir

#include "ltweb.h"

L_LTWEB_API L_INT L_InetFtpGetCurrentDir(hFtp, pszRemoteDir, ulSize)

HFTP hFtp;

/* handle to an FTP connection */

L_TCHAR *pszRemoteDir;

/* character string to be updated */

L_UINT32 ulSize;

/* length, in characters, of the buffer for the current directory string */

Retrieves the current directory for the specified FTP connection.

Parameter

Description

hFtp

Valid HFTP handle to an FTP connection.

pszRemoteDir

Character string to be updated with the current directory string, which specifies the absolute path to the current directory. The string is NULL-terminated. This parameter cannot be NULL.

ulSize

A variable that specifies the length, in characters, of the buffer for the current directory string. The buffer length must include room for a terminating NULL character. Using a length of MAX_PATH is sufficient for all paths.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Retrieves the current directory.

If the pszRemoteDir parameter is NULL, this function will fail.

Required DLLs and Libraries

LTWEB
LTFIL

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

L_InetFtpCreateDir, L_InetFtpChangeDir, L_InetFtpDeleteDir

Topics:

FTP Functions: Directory Manipulation Over an FTP Connection

 

How to Program with FTP Functions

Example

For an example, refer to L_InetFtpConnect example.