MIGetCurrentFtpDirectory() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Gets the name of the current directory on the FTP server with the given CFtpConnection handle.

Syntax

MIGetCurrentFtpDirectory( Byval hConnection As CFtpConnection, 
	pDirName As String, pLen As Integer As SmallInt

hConnection is a CFtpConnection handle.

pDirName is a reference to a string that receives the name of the directory.

pLen is a reference to an integer that contains the size of the buffer referenced by pDirName as input; the number of characters stored to pDirName as output.

Return Value

Nonzero if successful; otherwise 0. To determine the cause of the failure, call the MIGetErrorMessage() function.

Description

The parameters pDirName can be either fully qualified, or partially qualified, file names relative to the current directory. A backslash (\) or forward slash (/) can be used as the directory separator for either name. MIGetCurrentFtpDirectory() translates the directory name separators to the appropriate characters before they are used.