遍历一个路径
Project description
my_find_files 是一个 Python 模块,可以用来遍历一个文件夹,查找指定类型的文件,并返回它们的路径。该模块可以通过简单的 API 调用,提供灵活的文件查找功能。
主要特点:
* 支持递归查找文件夹中的文件;
* 可以指定查找的文件类型,例如 jpg、png、txt 等;
* 可以过滤掉指定名称的文件或文件夹;
* 返回的文件路径可以根据文件名、文件修改时间、文件大小等排序。
安装
-------
可以通过 pip 安装 my_find_files:
```
pip install my_find_files
```
示例
-------
使用 my_find_files 查找当前文件夹下所有的 .txt 文件:
```python
from my_find_files import find
result = find('.', '*.txt')
print(result)
```
详细文档
-------
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
my_find_files-1.0.0.tar.gz
(1.7 kB
view details)
File details
Details for the file my_find_files-1.0.0.tar.gz.
File metadata
- Download URL: my_find_files-1.0.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eaee8573d8f56676c0aaaad82fdfc23a9fdb8d653f949e8dda772b753005f30
|
|
| MD5 |
386dadb840fa8b0d3fa436465df3d0c2
|
|
| BLAKE2b-256 |
875c83fc79c49434c3e7db20b81b2125c8326ca97d0e72512efed6d84cdde620
|