Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter SixFile Functions (continued)

DecompressFile Function

Overview

The DecompressFile function decompresses a file made with the CompressFile function.

Syntax/Parameters

Syntax

int = DecompressFile ( string source, string destination );

Parameters

source

A string specifying a qualified source filename to decompress. For maximum flexibility, this file is opened with read access and share write/read.

destination

A string specifying a qualified destination filename. If a file of the same name already exists, it is overwritten.

Return Value

Returns an int as ERROR_NONE or a formatted error code on failure. The ERROR_DT_SOURCE (0x00100000) and ERROR_DT_DESTINATION (0x00200000) bits may be set to identify an error with a specific file operation.

Remarks

Note the files created with the ZLIB_NO_COMPRESSION flag are not presently working.

Related Functions

Platform Support

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

Legato IDE, Legato Basic