> ## Documentation Index
> Fetch the complete documentation index at: https://docs.engini.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# On Prem Files

This guide will show you how to use the **Engini On-Prem Agent** to securely manage files stored in your local environment. You’ll learn how to perform operations such as retrieving, creating, renaming, and organizing files. By following this guide, you’ll be able to seamlessly integrate your on-premises file systems into Engini workflows, enabling efficient and secure file management without compromising your corporate firewall.

## Set Up On Prem Agent

Before managing files with the Engini On-Prem Agent, you need to complete the setup process. This includes the following steps:

1. Add an Agent to your account.
2. Download and Install the Agent on your local system.
3. Test the Agent Connection to ensure it’s working correctly.
4. Add Your On-Prem Agent to the file management connection.

If you’re unsure how to complete these steps, please refer to the [On prem Agents](/help/connections/on-prem-agent) guide. Once the setup is complete, you can proceed to manage files securely.

## Add a connection to On Prem File in Engini

1. Enter your Engini account at [https://app.engini.io](https://app.engini.io/).

2. Navigate to Connections page by clicking on the Connections on the left sidebar or by clicking [here](https://app.engini.io/connections).

   <img src="https://mintcdn.com/engini/IRSUmJkhXlJLgtto/help/assets/apps/on-prem-files/GLNv1c_NyR9KG_gXQH6va_home-page-connector.png?fit=max&auto=format&n=IRSUmJkhXlJLgtto&q=85&s=2f9c9b17766e23e609bc50161333bbce" alt="" width="1920" height="1080" data-path="help/assets/apps/on-prem-files/GLNv1c_NyR9KG_gXQH6va_home-page-connector.png" />

3. Click on the "New Integration" option located at the top bar.

   <img src="https://mintcdn.com/engini/IRSUmJkhXlJLgtto/help/assets/apps/on-prem-files/Tc8OwXyO6hXXNLrpdVzA0_untitled-design-34.png?fit=max&auto=format&n=IRSUmJkhXlJLgtto&q=85&s=d7256e955277fe1eb1b30079eea63f88" alt="" width="1913" height="906" data-path="help/assets/apps/on-prem-files/Tc8OwXyO6hXXNLrpdVzA0_untitled-design-34.png" />

4. Choose On-Prem Files option from the available applications.

   <img src="https://mintcdn.com/engini/IRSUmJkhXlJLgtto/help/assets/apps/on-prem-files/Sl4ScwzIgILyCiKBg1uxT_untitled-design-41.png?fit=max&auto=format&n=IRSUmJkhXlJLgtto&q=85&s=633758b6197c6f38c8b1c37e978a033d" alt="" width="1913" height="905" data-path="help/assets/apps/on-prem-files/Sl4ScwzIgILyCiKBg1uxT_untitled-design-41.png" />

5. Enter the following details in the "New Integration" form:

   <img src="https://mintcdn.com/engini/IRSUmJkhXlJLgtto/help/assets/apps/on-prem-files/U_FnhPDje6f6v5U0XDYR6_2-50.png?fit=max&auto=format&n=IRSUmJkhXlJLgtto&q=85&s=df86a40597e06bd22cd9c315d4c8fd35" alt="" width="1920" height="1080" data-path="help/assets/apps/on-prem-files/U_FnhPDje6f6v5U0XDYR6_2-50.png" />

   1. *Connection name* – A required field where you provide a unique name for the connection.

   2. *Directory* – The base folder path for file access. This is the root directory where the agent will operate. Paths specified in workflows will be relative to this base directory.
      For example: *C:\Shared\Files.*

   3. *On-prem Agent* – A dropdown menu where you select the desired On-Prem Agent for this connection. This agent must already be configured and available for selection.

   4. Click on the save button to save the connection.

## Activities

### Create File

This activity creates a new file in the specified path and populates it with provided content.

<img src="https://mintcdn.com/engini/IRSUmJkhXlJLgtto/help/assets/apps/on-prem-files/nKQaCKcWxoKgi8K9CvvIm_2-45.png?fit=max&auto=format&n=IRSUmJkhXlJLgtto&q=85&s=4878a9ca830ac9cbbff9db1e6a47da63" alt="" width="1916" height="1074" data-path="help/assets/apps/on-prem-files/nKQaCKcWxoKgi8K9CvvIm_2-45.png" />

1. *File Path –* Specify the relative file path. The file path should also include the file name. If the file should be created in a directory inside the directory provided in the connection, then you should use the Concat() function to concatenate between the path to the file name.
2. *File Content* – Provide the content to be written into the file. Ensure the content is in Base64 format. You can use the *StringToBase64* function available in Engini to convert your string into Base64 format.
3. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Delete File

This activity deletes a file from the specified location.

<img src="https://mintcdn.com/engini/IRSUmJkhXlJLgtto/help/assets/apps/on-prem-files/ErFPFKFtoqcRa8oOHO1YV_2-46.png?fit=max&auto=format&n=IRSUmJkhXlJLgtto&q=85&s=e4ba82855dccca1be95f3491ec038454" alt="" width="1912" height="1072" data-path="help/assets/apps/on-prem-files/ErFPFKFtoqcRa8oOHO1YV_2-46.png" />

1. *File Path* – Provide the relative file path of the file you want to delete.
2. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Get File

This activity retrieves the content of a specific file.

<img src="https://mintcdn.com/engini/IRSUmJkhXlJLgtto/help/assets/apps/on-prem-files/CRWF3L6QFwig40w2MNzz-_2-47.png?fit=max&auto=format&n=IRSUmJkhXlJLgtto&q=85&s=59ca24a126eccb72df6017f8ac724661" alt="" width="1911" height="1069" data-path="help/assets/apps/on-prem-files/CRWF3L6QFwig40w2MNzz-_2-47.png" />

1. *File Path* – Specify the relative file path of the file you want to retrieve.
2. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Get Files

This activity lists all files in a specific folder, with optional filtering.

<img src="https://mintcdn.com/engini/IRSUmJkhXlJLgtto/help/assets/apps/on-prem-files/TB-JVDMV_IuMOpwji8wgZ_untitled-design-42.png?fit=max&auto=format&n=IRSUmJkhXlJLgtto&q=85&s=29680e10991d64d8933da782926a5ada" alt="" width="1914" height="1074" data-path="help/assets/apps/on-prem-files/TB-JVDMV_IuMOpwji8wgZ_untitled-design-42.png" />

1. *Folder*– Specify the folder path relative to the base path to list files from.
2. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Move File

This activity moves a file from its current location to a new destination.

<img src="https://mintcdn.com/engini/IRSUmJkhXlJLgtto/help/assets/apps/on-prem-files/5khl-If05pNe3w5yHVG_j_2-48.png?fit=max&auto=format&n=IRSUmJkhXlJLgtto&q=85&s=23ede2dfe7519ce45f471500f4045877" alt="" width="1914" height="1068" data-path="help/assets/apps/on-prem-files/5khl-If05pNe3w5yHVG_j_2-48.png" />

1. *File Path* – Specify the relative path of the file to be moved.
2. *Destination Folder Path* – Provide the relative destination folder path where the file will be moved.
3. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Rename File

This activity renames an existing file to a new name.

<img src="https://mintcdn.com/engini/IRSUmJkhXlJLgtto/help/assets/apps/on-prem-files/hRoyNMcZKqgv5mFqg1k-j_screenshot-2025-12-30-104532.png?fit=max&auto=format&n=IRSUmJkhXlJLgtto&q=85&s=6346da452fc5d07346df04db4d882951" alt="" width="971" height="490" data-path="help/assets/apps/on-prem-files/hRoyNMcZKqgv5mFqg1k-j_screenshot-2025-12-30-104532.png" />

1. *File Path –* Provide the relative path of the file to be renamed.
2. *New File Name-* Enter the new name for the file.
3. *Keep connection alive until complete-* If checked, the system maintains the connection to the agent throughout the renaming process to ensure completion.

### Create Folder

This activity creates a new folder in the specified path.

<img src="https://mintcdn.com/engini/IRSUmJkhXlJLgtto/help/assets/apps/on-prem-files/ua6V1teiMPL_M2_T_LLLq_screenshot-2025-12-30-104641.png?fit=max&auto=format&n=IRSUmJkhXlJLgtto&q=85&s=8b8f31be962180ca13b74acb9ba0b336" alt="" width="965" height="365" data-path="help/assets/apps/on-prem-files/ua6V1teiMPL_M2_T_LLLq_screenshot-2025-12-30-104641.png" />

1. *Folder Name* – Provide the name of the folder to be created. The path is relative to the base path.
2. *Keep connection alive until complete-* If checked, the system maintains the connection to the agent throughout the renaming process to ensure completion.

### Delete Folder

This activity deletes an existing folder, including all its contents.

<img src="https://mintcdn.com/engini/IRSUmJkhXlJLgtto/help/assets/apps/on-prem-files/VCyO72evkUUHAZLZRTgvx_screenshot-2025-12-30-104738.png?fit=max&auto=format&n=IRSUmJkhXlJLgtto&q=85&s=11b144284859e7158360c14be4d80d34" alt="" width="967" height="343" data-path="help/assets/apps/on-prem-files/VCyO72evkUUHAZLZRTgvx_screenshot-2025-12-30-104738.png" />

1. *Folder Name* – Specify the name of the folder to delete. The path should be relative to the base path.
2. *Keep connection alive until complete*– If checked, the connection to the agent is maintained until the folder deletion process is successfully completed.

### Get Folders

This activity retrieves a list of folders from a specified directory, with options to include subfolders and apply filters.

<img src="https://mintcdn.com/engini/IRSUmJkhXlJLgtto/help/assets/apps/on-prem-files/sOkFyUKePaH_4VtkXAQnS_screenshot-2025-12-30-104840.png?fit=max&auto=format&n=IRSUmJkhXlJLgtto&q=85&s=d475b2feea0850bbd8acb0936983b13e" alt="" width="965" height="437" data-path="help/assets/apps/on-prem-files/sOkFyUKePaH_4VtkXAQnS_screenshot-2025-12-30-104840.png" />

1. *Folder* – Provide the folder path relative to the base path to list folders from.
2. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).
   * *Include Files in Sub folders* – Select *True* to include folders from subdirectories or *False* to limit results to the main directory.
   * *Naming Pattern* – Use filters to retrieve specific folders based on naming patterns (e.g., Folder\* for names starting with “Folder”).
3. *Keep connection alive until complet*e – If checked, ensures the connection to the agent remains active during the folder retrieval process, especially for large directories or complex filters.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.