Class - FtpConn

This section lists all properties and methods associated with FtpConn.

Data Types

The following are the data types used by FtpTree ActiveX Control:

  • BSTR
    • Basic String used by OLE to transfer strings of text.
  • BOOL
    • Boolean value, can be True or False.
  • I4
    • 4 byte signed integer.
  • DISPATCH
    • an object pointer, for FtpTree, usually it refers to a TreeItem.
  • VARIANT
    • an object whose value varies. For FtpTree it's usually a SAFEARRAY, or simply put, an array of items.
Properties
BSTR Account Optional account name to use after sending password.
BSTR CurrentDirectory Sets/Returns the current directory.
BSTR ProxyName Sets/Returns the current proxy server name.
BSTR ProxyPassword Sets/Returns the current proxy password.
BSTR ProxyUserID Sets/Returns the current proxy user ID.

Methods
long Connect(long AccessType, BSTR Server, BSTR UserName, BSTR Password, long Port, int Passive) Makes a connection to an FTP Server.
BOOL CreateDirectory(BSTR Dir) Call to create a directory.
FtpFile* OpenReadFile(BSTR FileName, int ASCII, long ResumeLoc) Opens a file for reading.
FtpFile* OpenWriteFile(BSTR FileName, int ASCII, long ResumeLoc) Opens a file for writing.
BOOL IsPositiveCompletion(long RetVal) Identifies whether or not a value is a positive completion return value.
BOOL IsPositiveIntermediate(long RetVal) Identifies whether or not a value is a positive intermediate return value.
BOOL IsPositivePreliminary(long RetVal) Identifies whether or not a value is a positive preliminary return value.
BOOL Remove(BSTR FileName) Call to delete a file.
BOOL RemoveDirectory(BSTR Dir) Call to remove a directory.
BOOL Rename(BSTR OldName, BSTR NewName) Call to rename a file.