OpenParable
Skip to content
← Back to skills

Search Specify Type File

Documents
search_specify_type_file

Search Specify Type File is an Agent Skill for documents published in the CoderWanFeng/python-office repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

在指定路径下搜索指定类型的文件(如 .txt、.pdf)。当用户提到按类型搜索文件、找某类文件、检索文件时使用。

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CoderWanFeng/python-office/blob/HEAD/skills/file/search_specify_type_file/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/search-specify-type-file, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

search_specify_type_file Skill

在当前路径下搜索指定类型的文件

功能描述

在指定路径下搜索指定类型的文件。

所属分类

office/skills/file/search_specify_type_file/

调用方式

from office.skills.file import search_specify_type_file

search_specify_type_file(
    file_path='./data',
    file_type='.txt'
)

参数说明

参数类型必填默认值说明
file_pathstr是-文件路径
file_typestr是-文件类型(如 .txt、.py)

返回值

None(结果直接打印输出)

使用示例

from office.skills.file import search_specify_type_file
search_specify_type_file(file_path='./docs', file_type='.pdf')

原始函数

office.api.file.search_specify_type_file