MISetCurrentFtpDirectory() 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

Changes to a different directory on the FTP server with the given CFtpConnection handle.

Syntax

MISetCurrentFtpDirectory( Byval hConnection As CFtpConnection, 
	Byval strDirName As String ) As SmallInt

hConnection is a CFtpConnection handle.

strDirName is a string that contains the name of the directory.

Return Value

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

Description

The pDirName parameter can be either a partially or fully qualified file name relative to the current directory. A backslash (\) or forward slash (/) can be used as the directory separator for either name.

MISetCurrentFtpDirectory() translates the directory name separators to the appropriate characters before they are used.