Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
quickly locate files using glob patterns, for Clojure
Clojure
Branch: master
Pull request Compare This branch is 2 commits ahead, 9 commits behind jkk:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/org/satta
test/org/satta
.gitignore
README.md
project.clj

README.md

glob

Finds files based on glob patterns like "*.jpg" or "/usr/*/se*". Similar to glob in Perl, Ruby, and PHP.

Usage

(ns foo.bar
  (:use org.satta.glob))

(glob "*.{jpg,gif}")

(glob ".*")  ; dot files are not included by default

(glob "/usr/*/se*")  ; works on directories and subdirectories

(glob "c:/Windows/*/*.dll")  ; works on Windows

Caveats

  • It is case sensitive, so "windows" and "Windows" is not the same

  • Use slashes in glob pattern, the syntax is the same on Windows as *nix

Installation

Add this dependency to your project.clj:

[clj-glob "0.1.0"]

License

EPL

Something went wrong with that request. Please try again.