racket/collects/meta/tree/plt-tree.ss
Eli Barzilay 8cdb172e7f Made `not:' produce predicates tagged as negated -- and for these, an
empty directory is *not* dropped.  This finally makes the results more
intuitive, and can now also express queries like only directories,
without their content.  (See comments and new tests.)

svn: r17456
2010-01-01 05:54:47 +00:00

22 lines
519 B
Scheme

#lang scheme/base
(require setup/dirs "tree.ss")
(define (get-plt-tree)
(when absolute-installation?
(error 'get-plt-tree "must be used from a relative installation"))
(get-tree (build-path (find-collects-dir) 'up)))
#| good for benchmarking changes
(printf "getting tree\n")
(define t (get-plt-tree))
(printf "filtering\n")
(time
(for ([i (in-range 1000)]) ; print-tree
(tree-filter
(not: (or: "**/.svn/" "**/compiled/"))
;; (get-tree "/home/scheme/plt/collects/scribble/.svn")
t
)))
|#