Creating A Directory - Jetter JC-120MC User Manual

Table of Contents

Advertisement

JC-120MC

Creating a directory

Introduction
Function declaration
Function parameters
Return value
Operating principle
Jetter AG
This function lets you create a new directory from the file system of a remote
network node.
Function
FtpDirCreate(FtpConnection:Handle,
Description of the function parameters:
Parameter
FtpConnection
ServerDir
If the returned value is negative, an error has occurred. If the returned value is
0, the directory could successfully be created in the file system of the remote
network node.
Return value
0
No error
-1
Invalid handle
-2
Communication error, there is, for example, no response from
FTP server
-3
Error message from FTP server, e.g. directory already exists
In the following cases, the task is not processed further after issuing the
function call:
The FTP server must first create a subdirectory.
An error has occurred.
This function is processed in the following steps:
Step
1
The controller sends a command to the FTP server that it has to create a
subdirectory.
2
The FTP server creates the directory.
3
... no errors have occurred, ...
... errors have occurred, ...
Const Ref
ServerDir: String):Int;
Value
Handle
Directory name
Description
If ...
... the new directory has been
created, the function is terminated
and value 0 is returned.
... the function is terminated and a
negative value is returned.
FTP client
Remarks
Value returned by the
function FtpConnect()
Name of the directory to be
created
... then ...
175

Advertisement

Table of Contents
loading

Table of Contents