Open topic with navigation

# zip_file

The `zip_file` method zips the supplied path (file or directory). It overwrites the output file only if you set the optional `overwrite` argument to `true`.

## Syntax

    zip_file( path [, overwrite] )

## Arguments

Argument | Description
--- | ---
`path` | (string) The path or filename of the file or folder to zip.
`overwrite` | (boolean) A boolean that specifies whether to force the creation of the zip file if an output file already exists. The default is `false`.

## Returns

(Boolean). Returns a Boolean indicating success or failure. On success writes a file called `path.zip`.

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm