Skip to main content

search-file - A python module that searches files(or folders). 一个用于搜索文件或文件夹的Python模块。

Project description

search-file - A python module that searches files(or folders). 一个用于搜索文件或文件夹的Python模块。

包含的函数 FUNCTIONS:

directories(path):

  • 一个生成器, 列出path下的所有子目录和文件名。

>>> from search_file import directories
>>> list(directories("C:"))
['C:\Users',  #第一层目录
'C:\\\\Users\\\\Administrator', #第二层目录
...,
'C:\Windows',
'C:\\\\Windows\\\\System32',
...]

dirs: 是否列出目录 files: 是否列出文件

search(filename,path,minsize=0,maxsize=None):

  • 一个生成器,在path中搜索一个文件或文件夹。

>>> from search_file import search
>>> list(search("cmd.exe","C:"))
['C:\\\\Windows\\\\System32\\\\cmd.exe',
...]
版本 VERSION:

1.2.1

作者:七分诚意 qq:3076711200 邮箱:3416445406@qq.com

Keywords: path,search,file Platform: UNKNOWN Classifier: Programming Language :: Python Classifier: Topic :: System :: Filesystems

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

search-file-1.2.1.tar.gz (2.4 kB view hashes)

Uploaded Source

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