Table of Contents

IDirectory

Namespace
ZCore
Extends
Inherited Properties
Inherited Methods
INTERFACE IDirectory EXTENDS ZCore.IObject, ZCore.IError

This function block encapsulates various platform-dependent systemcalls that are dealing with directories. DirectoryUM can be used to generate Directories inside a given folder on a filesystem of a given Runtime Target.

Methods

CreateDirectoryAsync

METHOD CreateDirectoryAsync (
 [input] startToken : IStartToken,
 [input] pathName : STRING)

This method is used to start the creation of the given path on a filesystem. Folders that can not be found on the target are created recursively. If there is an empty string given or a task of function block is already running, the call to this method with fail the corresponding error is returned with startToken (if provided).

pathName has to be the fully pathname to a directory or a file

CreateDirectoryAsync(startToken:=0, pathName:='C:\path\subpath1\'); // create the directory 'path' and 'subpath1', respectively, if they do not exist
CreateDirectoryAsync(startToken:=0, pathName:='C:\path\subpath2'); // create the directory 'path' and 'subpath2', respectively, if they do not exist

Inputs

startToken IStartToken

(optional) object to retrieve information about successful or unsuccessful operation - may be 0

pathName STRING

Fully qualified pathname including the drive letter (e.g. 'C:\path\logs') or on unix based systems starting with \ root