> For the complete documentation index, see [llms.txt](https://docs.gpmautomate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder.md).

# 📁文件和文件夹

- [文件存在](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/file-exists.md)
- [复制文件](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/copy-file.md)
- [移动/重命名文件](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/move-rename-file.md)
- [删除文件](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/delete-file.md): 按照文件路径删除文件。
- [文件读取所有文本](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/read-all-text.md)
- [文件读取所有行](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/read-all-lines.md)
- [文件读取随机行](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/read-random-line.md)
- [文件写入所有文本](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/file-write-all-text.md)
- [文件追加行](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/file-append-line.md)
- [创建空Excel](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/create-empty-excel.md)
- [读取Excel文件](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/read-excel-file.md)
- [写入Excel文件](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/write-excel-file.md)
- [追加Excel文件](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/append-excel-file.md): 将新数据添加到现有 Excel 文件的末尾，而不覆盖当前内容。
- [文件夹存在](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/folder-exists.md)
- [创建文件夹](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/create-folder.md)
- [移动/重命名文件夹](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/move-rename-folder.md)
- [删除文件夹](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/delete-folder.md)
- [文件夹获取文件列表](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/folder-get-file-list.md)


---

# 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 dynamically by asking a question.

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

```
GET https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
