适用于64位Windows的文件查找工具
Project description
FileFly
- 一个用Rust开发的文件工具
- 适用于64位Windows
- 简单易用 无其他依赖
- 速度超快 10W+文件全部搜索完成仅需0.6秒
示例
from re import compile as Regex
from time import time
import FileFly
def Wrap(Fun):
def _Wrap(*args, **kwargs):
Time_Start = time()
Results = Fun(*args, **kwargs)
print(f"{Fun.__name__} 耗时 {time() - Time_Start} 秒")
return Results
[setattr(_Wrap, E, getattr(Fun, E))
for E in ["__module__", "__name__", "__doc__",
"__qualname__", "__annotations__"]]
return _Wrap
@Wrap
def TestAllFile():
print(len(FileFly.GetAllFile("D:\\", True)))
@Wrap
def TestPngFile():
print(len(FileFly.GetAllFile("D:\\", True, Regex(r".*\.png$"), False, False)))
if __name__ == "__main__":
TestAllFile()
TestPngFile()
>>> 109193
>>> TestAllFile 耗时 0.5151987075805664 秒
>>> 5346
>>> TestPngFile 耗时 0.6114356517791748 秒
任务目标
- 获取系统所有硬盘
- 获取硬盘全部文件(HS系统元文件自动跳过)
- 实现原生正则匹配
- 适配Linux
- ...
现存问题以及解决方案
- 系统盘根目录全部文件耗时较长, 应避免直接读取系统盘根目录, 可对需要的目录进行过滤
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file FileFly-0.1.2-cp312-none-win_amd64.whl
.
File metadata
- Download URL: FileFly-0.1.2-cp312-none-win_amd64.whl
- Upload date:
- Size: 131.5 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 448d6b2ffcf60bd3a3b05c679e64902d4fd34c1df037fa61e2979ffe35696eca |
|
MD5 | 96ef444c11e968e4c6f81c0db4846b58 |
|
BLAKE2b-256 | e836b3a1ad591514ba16c72b682f26bdb11af1477d01ce9c3916f39486635365 |