mirror of
https://github.com/tonsky/FiraCode.git
synced 2024-10-10 19:58:39 +03:00
12 lines
289 B
Clojure
12 lines
289 B
Clojure
(ns fira-code.files
|
|
(:refer-clojure :exclude [find])
|
|
(:require
|
|
[clojure.java.io :as io]
|
|
[clojure.string :as str]))
|
|
|
|
|
|
(defn find [path re]
|
|
(->> (file-seq (io/file path))
|
|
(next) ;; skip directory itself
|
|
(filter #(re-matches re (.getPath %)))
|
|
(sort-by #(.getPath %)))) |