Medialon MxMs' Help
Name: Medialon FTP Client
Version: 6.7.2
Available for: Manager V7 and Manager V6 (Lite & Pro), Showmaster Mini
Limitation In:
Device Brand: Medialon
Positrack Compatible: No
Resources type: TCP/IP Network

Overview

MXM FTP Client is designed to provide File Transfert Protocol Client facilities.

It provide functions to connect to, download from, upload to and manage FTP Sites front regular FTP servers (Medialon FTP Client is compatible with at least Microsoft IIS FTP Server, Bison FTP Server and CatSoft Serv-U server).

Multiple and filtered file transferts can be done in a single command like donwload “*.txt” or Upload “DIR” where “DIR” is a directory name.

FTP Client Device could use an object container to display FTP Site browser. If this browser is used, user actions could be automatically handled by the device like double-click on an item or drag and drop file into the browser (which will cause to upload to file). This automatic user management could be disabled to enable programmer to treat user actions.

MxM Installation

No special installation required.

Device Setup

Device creation window:

Default Local Directory: Path of the default directory on the local machine where files will be downloaded or uploaded. Browse button provide a quid way to select a folder in the local machine.

If the folder does not exist, it will be created.

Browser options:

Show Commands: Enable or disable to show commands toolbar in the browser.

Show Path: Enable or disable to show path toolbar in the browser.

Automatic IHM Mode:

NOTE : This feature is DEPRECATED, setting exists only for legacy compatibility reasons

Enable or disable automatic user action handler in the browser. If this option is selected, user commands (like double-click on a file) are handled and proceed by the device. If this option is not selected, variables beginning with User… are set to inform the programmer about user actions type and parameters.

Device Commands

Connect

Try to connect to the given FTP server with user and password parameters.

Usage: This command must be used before any other operation.

Disconnect

Disconnect from the current FTP server.

retrieve File List

Download the file list from the FTP server. This will retrieve the list of availble files in the FTP server current directory (default is the user root directory).

Usage: This command should be used each time the current directory is changed (see below).

Nevertheless, this command must be used before any download.

Download

Download the given file from the FTP server to the local directory.

If the parameter is not specified the default local directory is used (Default local directory is defined in the device setup).

Usage: This command could be used to download one or more files and/or directories. Using * caracter in the filename parameter, it’s possible to select a set of files and/or directories.

Ex FileName: “*.txt” will download all text files in the current FTP directory.

If the given filename is a directory name, the entire content of this directory will be downloaded.

Before using this command a “retrieve File List” command must be used to list the contains of remote folder.

Upload

Upload the given file to the FTP server from the local directory.

If the parameter is not specified the default local directory is used (Default local directory is defined in the device setup).

Usage: This command could be used to upload one or more files and/or directories. Using * caracter in the filename parameter, it’s possible to select a set of file and/or directories.

Ex FileName: “*.txt” will upload all text files in the current FTP directory.

If the given filename is a directory name, the entire content of this directory will be uploaded. In addition, if the FileName parameter contain a list of absolute files path (separated by CRLF sequence) then all specified files will be uploaded into the current FTP directory.

Change Directory

Change to the given FTP directory.

Usage: This command could be used with a directory name as well as ‘coded’ directory names like “..” to go to up one directory level or “/” to go to user root directory. Directory name could contain sub-directories names like “/DIR/SUB_DIR/SUB_SUB_DIR”.

Before using this command a “retrieve File List” command must be used to list the contains of remote folder.

Delete

Delete given file or directory name.

Usage: Using * caracter in the filename parameter, it’s possible to select a set of file and/or directories.

Ex FileName: “*.txt” will delete all text files from the current FTP directory. If the given filename is a directory name, the entire content of this directory will be deleted (if the “Fail If Not Empty DIR” option is not set).

Rename

Rename the given filename.

Usage: If the “New Filename” does not contain the same relative path than the “FileName” the file will be move to the given directory. This does not work with directories name. Create

Directory

Create a new directory in the current FTP directory.

Abort

Cancel a transfert in progress. File currently in transfert is not kept.

Get File Info

Read file informations.

Usage: Before using this command a “retrieve File List” command must be used to list the contains of remote folder.

Get File Selection

Get a list of files depending on given type and filter.

Usage: This command could not be used before command “retrieve File List” have been performed. This command does not transfert any information from the FTP server but act as selection in the list of files provided by the FTP server.

Synchronize

Synchronize the content of a remote site from the content of a local directory.

Usage: This command could be used to synchronize the content of a remote site from the content of a local directory.

Added files/directories are added to the remote site as well as deleted files are remove from the remote site.

Using * caracter in the filename parameter, it’s possible to select a set of file and/or directories. Ex FileName: “*.txt” will upload all text files in the current FTP directory. If the given filename is a directory name, the entire content of this directory will be synchronized.

Note: This command use a reference file named “__refdb._ur” which is saved into the remote site. If this file is missing, the synchronization is done uploading all files and directories and then the reference file is created again.

Note2: The synchronization is done from the local directory to the remote site. This means that any change made in the local directory is updated on the remote site but not the opposite. A change made on the remote site (using for example another FTP Client) is not updated on the local directory.

Device Variables

Status

[Enum] Current status of the device connection.

OperationPending

[Enum] Current operation in progress.

CurrentError

[Enum] Error status of the device.

CurrentPath

[String] Current path on the FTP server (“/” is root).

FileList

[String] List of Files from the FTP server current directory.

FileCount

[Integer] Number of files in the “FileList”.

CurrentFileName

[String] Name of the file or directory currently in operation.

TotalData

[Integer] Number of bytes of the CurrentFileName (in operation).

TransferedData

[Integer] Number of currently transfered bytes of the CurrentFileName (in operation).

TransfertProgress

[Integer] Percent of acheivement of current operation in progress.

UserAction

[Enum] Status of browser user action. This indicate what user is doing in the browser

UserFileName

[String] Files and/or directories concerned by user action.

UserSourcePath

[String] Local directory concerned by user action.

UserFileCount

[Integer] Number of files concerned by user action.

Revisions

V 1.0.1

V 1.0.2

V 6.0.0

V 6.0.1

V 6.0.2

V 6.0.3

V 6.0.4

V 6.1.0

V 6.1.1

V 6.7.0