Skip to content
FunCoding

search_specify_type_file

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

Star
1,359
License
Apache-2.0
Last commit
Aug 20, 2026

skills/file/search_specify_type_file/SKILL.md

View on GitHub

search_specify_type_file Skill

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

功能描述

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

所属分类

office/skills/file/search_specify_type_file/

调用方式

from 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 skills.file import search_specify_type_file
search_specify_type_file(file_path='./docs', file_type='.pdf')

原始函数

office.api.file.search_specify_type_file

Similar Skills

Featured

pdf

Read and edit PDFs: extract text and tables, merge, split, rotate, and fill forms.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

canvas-design

Create posters and visual art as PNG or PDF, guided by a design philosophy.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

docx

Create and edit Word docs with TOC, page numbers, headers and more.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

doc-coauthoring

Co-write specs, proposals and decision docs through a structured, iterative workflow.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

xlsx

Read and edit spreadsheets: add columns, compute formulas, format, and clean messy data.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

pptx

Create and edit slide decks, generate slides from templates, and extract text.

ANanthropics/skills181k1,119 new stars in the last 7 days