Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter SixFile Functions (continued)

DeleteFolder Function

Overview

The DeleteFolder function removes a folder from the directory tree.

Syntax/Parameters

Syntax

int = DeleteFolder ( string path );

Parameters

path

A string containing the path of the folder to be removed. This path must specify an empty directory and must be qualified. This parameter supports UTF encoding for filenames with Unicode characters.

Return Value

Returns an int as ERROR_NONE on success or a formatted error code on failure. Use the GetLastError function to retrieve error information. Error codes match Windows system error codes (for a list, see the Appendix A — Legato SDK Standard Definitions or MSDN).

Remarks

The last folder in the path parameter is deleted. If there are any entries in the directory, the DeleteFolder function will fail.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic