> For the complete documentation index, see [llms.txt](https://docs.floui.io/guia/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.floui.io/guia/conectores/categorias/manipulacao-de-arquivos/file-reader.md).

# File Reader

Busque por arquivos ou diretórios na raiz ou em um caminho específico dentro do seu Workspace atual.

{% tabs %}
{% tab title="Parâmetros" %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcZfR1MzmyJf9lfLWBkBaVh-4ukJ6voTuFm6fZvrDR8Zd51Zr_0SkLjj9RFlOBQOd_zgkszXTvT6x6dqYkDOiQn_UcnLpBLh3JqQH2Lc0v1WtcipKexzlpEzY2Bw8-k53OU1YVJ?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Parâmetros de configuração</p></figcaption></figure>

| Campo                  | Tipo           | Descrição                                                                                                                      |
| ---------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Descrição              | Campo de texto | Descrição visual do conector no editor de fluxos.                                                                              |
| Localização do arquivo | Campo de texto | Indicação da localização do arquivo dentro do storage do Workspace. Pode ser utilizado “/” como prefixo para caminho absoluto. |
| Encoding               | Seletor        | Define o tipo de codificação a ser usada para leitura do arquivo.                                                              |
| Output Path            | Campo de texto | Define o nome de um atributo que irá armazenar a saída de dados do conector dentro do objeto msg no contexto do fluxo atual.   |
| {% endtab %}           |                |                                                                                                                                |

{% tab title="Payload" %}

## Sucesso

A saída de dados pode variar de acordo com o encoding do seu arquivo, podendo retornar o arquivo lido em ISO-8859-1, binário ou em UTF-8.

<figure><img src="https://215079342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F226k0cnPTn1PWu9xHcK8%2Fuploads%2FRUlCZbeacdSpxcHyUoOJ%2Fimage.png?alt=media&amp;token=15a39525-b04d-4444-a176-877f065a960d" alt=""><figcaption><p>Sucesso na leitura de arquivos</p></figcaption></figure>

## Erro

Caso o caminho do arquivo tenha sido configurado errado ou não exista, o retorno será dado através dos logs no painel Live Debugger do seu fluxo, retornando `null`.

<figure><img src="https://215079342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F226k0cnPTn1PWu9xHcK8%2Fuploads%2FW0Bb3IMCqra25DRwoo5w%2Fimage.png?alt=media&amp;token=28f36810-b4ad-4824-a0d9-406ddf5e1f1d" alt=""><figcaption><p>Erro na leitura de arquivos</p></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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://docs.floui.io/guia/conectores/categorias/manipulacao-de-arquivos/file-reader.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.
