Skip to main content

适用于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


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

FileFly-0.1.2-cp312-none-win_amd64.whl (131.5 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page