> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://doc.common-services.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Permission issues, write access

The module shows an error saying it cannot create / write a file or folder, for example:

> Unable to create the directory (…/modules/cdiscount/export/…)

or

> Directory is not writeable - "…/modules/cdiscount/export"

or

> Unable to write to the XML file / Unable to open output file for writing

*(Current module strings, often in English.)*

This is usually a **write-permission** issue on the module data folders.

Check write access to the export directory via FTP (e.g. FileZilla):

1. Connect to the server and open `modules/cdiscount`:

![PrestaShop CDiscount export directory](https://storage.crisp.chat/users/helpdesk/website/-/3/f/a/8/3fa8ee645cd13200/prestashop-cdiscount-repertoir_dbvc6h.png)

2. Edit the attributes of the `export` folder (right-click):

![PrestaShop CDiscount folder attributes](https://storage.crisp.chat/users/helpdesk/website/-/3/f/a/8/3fa8ee645cd13200/prestashop-cdiscount-attributs_1afp3l9.png)

3. Grant the required write permissions:

![PrestaShop CDiscount set write permissions](https://storage.crisp.chat/users/helpdesk/website/-/3/f/a/8/3fa8ee645cd13200/prestashop-cdiscount-mettre-le_qgpuq6.png)

> Apply this only on **data** folders (`export`, and generated subfolders if needed), **not** on folders that contain PHP files. Some hosts require specific permissions there.