Skip to main content

search-file - *A python module that searches files(or folders).*

Project description

一个用于搜索文件或文件夹的Python模块。 Home-page: UNKNOWN Author: 七分诚意 qq:3076711200 邮箱:3416445406@qq.com Author-email: 3416445406@qq.com License: UNKNOWN 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',
...]
search(filename,path,minsize=0,maxsize=None):

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

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

作者:七分诚意 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.0.1.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file search-file--1.0.1.tar.gz.

File metadata

  • Download URL: search-file--1.0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.2

File hashes

Hashes for search-file--1.0.1.tar.gz
Algorithm Hash digest
SHA256 520d0aaeb65a230511047bdb94db7a913ff55a1dd1b260ae5ee8fea71440a60b
MD5 3a4d134d88abd5d2a4a389dc8bb2efd8
BLAKE2b-256 1d0ae4aaf7c8ec55a3cc8c0eafea40c480bc034821fa793ed66435806e221b2e

See more details on using hashes here.

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