Find the first file matching a given pattern in the current directory or the nearest ancestor directory.
Project description
# python-findup
## Introduction
Find the first file matching a given pattern in the current directory or the nearest ancestor directory. This project is (roughly) a python version of [node-findup-sync](https://github.com/cowboy/node-findup-sync).
## Installation
The best way to install is probably to use pip:
pip install findup
Or you can clone and install findup from github:
git clone https://github.com/todddeluca/python-findup.git cd python-findup python setup.py install
## Usage
pattern is combined with the current working directory or an ancestor directory and passed to glob.glob to see if the pattern matches. If it does, the first match is returned. Pattern can contain some shell wildcard characters, like ? and *. See the python glob module for more details.
findup.glob(pattern)
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
File details
Details for the file findup-0.1.0.tar.gz
.
File metadata
- Download URL: findup-0.1.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e97dc6aa64940a6560007018e5896cedc781fe4dd932a7a5d401469923cd54b |
|
MD5 | f6e4dd13ac84b2ffa4122c8257925b59 |
|
BLAKE2b-256 | 098b4c3a09ed519bd9de865e7b309114fff6f52d52afdfdd3f72f3382a1a3854 |