# getStoragePath

## Description

Retrieves the native storage path.

## Input / Parameter

| Name | Description                      | Input Type | Default | Options                                              | Required |
| ---- | -------------------------------- | ---------- | ------- | ---------------------------------------------------- | -------- |
| type | The storage path of directories. | Text       | cache   | cache, data, external, external data, external cache | Yes      |

## Output

| Description              | Output Type |
| ------------------------ | ----------- |
| The storage path string. | String      |

## Callback

N/A

## Example

In this example, we will show on the console the file path of a user device cache storage.

### Steps

1. Drag a button component to a page in the mobile designer, select the event `press` and drag the `Log.write` function to the event flow and change the `value` parameter type to `input`. drag the `File.getStoragePath` function to the subflow and fill in the `type` parameter with `cache` value.

   ![](/files/ksbP7Vna1KUyONI4yYO0)

### Result

1. Open the installed app on a device with a debugger on and try to press the button.
2. User should be able to see the `cache` file path on the console.

   ![](/files/3XTQM7jh9qz79EV7joyO)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/react-native/file/getstoragepath.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
