File: files.clj

package info (click to toggle)
fonts-firacode 6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,796 kB
  • sloc: sh: 287; python: 146; makefile: 19
file content (12 lines) | stat: -rw-r--r-- 289 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
(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 %))))