> For the complete documentation index, see [llms.txt](https://documentation.efalia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.efalia.com/produit/efalia-compose/mapping-suite/onyx-server/utilisation/utilisation-de-la-commande-map_zip.md).

# Utilisation de la commande map\_zip

Cette documentation concerne la commande MAPPING map\_zip

## Aide contextuelle

```
USAGE : map_zip <option> -zipfile:XXXX [ listfile... ]
 -zipfile:XXXX                     : Name of ZIP file to compress or
                                     decompress
 [ listfile... ]                   : List of files to compress
 [ -infile:file,...,file ]         : List of files to compress
 [ -infile:file ... -infile:file ] : List of files to compress
 [ -inpath:XXXXX ]                 : Source path of files to compress
 [ -outpath:XXXX ]                 : Destination path of files to
                                     decompress
                                   : Destination path to create compressed
                                     file
 [ -outfile:XXXX ]                 : Destination file if only one file in
                                     the archive
 [ -printer:XXXX ]                 : Destination printer
 Options:
   -d | --decompress               : decompress
   -c | --compress                 : compress
   -l | --list                     : list compressed files contents
   -v | --verbose                  : verbose mode
  --relative                       : (Compress) Allow to use -infile without the full path 
Note:
   if 'inpath:XXXX' only, whole folder will be compressed
```

## Exemples

### Compression avec un chemin absolu

Cet exemple créera un **/apps/mapping/infile/folder.zip** qui est la compression du répertoire **/apps/mapping/infile/folder**

```
/apps/mapping/bin/map_zip -zipfile:/apps/mapping/infile/folder.zip --compress -infile:/apps/mapping/infile/folder
```

{% hint style="info" %}
Le contenu du folder.zip sera composé du chemin absolu du répertoire soit **/apps/mapping/infile/folder** (avec les répertoires apps, mapping et infile vides)
{% endhint %}

### Compression avec un chemin relatif

Cet exemple créera un **/apps/mapping/infile/folder.zip** qui est la compression du répertoire **/apps/mapping/infile/folder**

```
/apps/mapping/bin/map_zip -zipfile:/apps/mapping/infile/folder.zip --relative --compress -infile:/apps/mapping/infile/folder
```

{% hint style="info" %}
A l’inverse de l’exemple précédent, cette utilisation du map\_zip (avec le paramètre **–relative** permet de mettre dans le fichier zip folder.zip uniquement le répertoire à compresser (soit le répertoire folder). Le contenu du folder.zip sera composé alors uniquement du répertoire folder sans ses répertoires parents
{% endhint %}

### Compression de certains fichiers d’un répertoire Cas 1

Cet exemple créera un **/apps/mapping/infile/folder.zip** avec seulement **un seul fichier** myfile.pdf du répertoire **/apps/mapping/infile/folder**

```
/apps/mapping/bin/map_zip -zipfile:/apps/mapping/infile/folder.zip --relative --compress -infile:/apps/mapping/infile/folder/myfile.pdf
```

### Compression de certains fichiers d’un répertoire Cas 2

Cet exemple créera un **/apps/mapping/infile/folder.zip** avec **plusieurs fichiers myfile.pdf, myfile2.pdf** du répertoire **/apps/mapping/infile/folder**

```
/apps/mapping/bin/map_zip -zipfile:/apps/mapping/infile/folder.zip --relative --compress -infile:/apps/mapping/infile/folder/myfile.pdf -infile:/apps/mapping/infile/folder/myfile2.pdf
```

### Compression de certains fichiers d’un répertoire Cas 3

Cet exemple créera un **/apps/mapping/infile/folder.zip** avec **plusieurs fichiers myfile.pdf, myfile2.pdf** du répertoire **/apps/mapping/infile/folder**

```
/apps/mapping/bin/map_zip -zipfile:/apps/mapping/infile/folder.zip --relative --compress -inpath:/apps/mapping/infile/folder -infile:myfile.pdf -infile:myfile2.pdf
```

{% hint style="info" %}
Contrairement à l’exemple précédent, grâce au paramètre **-inpath**, il n’est pas utile de spécifier pour chacun des fichier à compresser **-infile** son chemin.
{% endhint %}

### Décompression d’un fichier ZIP Cas 1

Cet exemple décompressera le fichier zip **/apps/mapping/infile/folder.zip** dans un répertoire **/apps/mapping/infile/folder\_out**

```
/apps/mapping/bin/map_zip -zipfile:/apps/mapping/infile/folder.zip --decompress -outpath:/apps/mapping/infile/folder_out
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.efalia.com/produit/efalia-compose/mapping-suite/onyx-server/utilisation/utilisation-de-la-commande-map_zip.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
