filename -> file-name
This commit is contained in:
parent
005c65f11c
commit
76f91f8abb
|
@ -51,8 +51,8 @@
|
||||||
(define (fs-object-name-matches? fso regexp)
|
(define (fs-object-name-matches? fso regexp)
|
||||||
(regexp-search? regexp (fs-object-name fso)))
|
(regexp-search? regexp (fs-object-name fso)))
|
||||||
|
|
||||||
(define (ds-object-filename-matches? fso regexp)
|
(define (ds-object-file-name-matches? fso regexp)
|
||||||
(regexp-search? regexp (fs-object-filename fso)))
|
(regexp-search? regexp (fs-object-file-name fso)))
|
||||||
|
|
||||||
;;; test stuff
|
;;; test stuff
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
"/"
|
"/"
|
||||||
name)))
|
name)))
|
||||||
|
|
||||||
(define (fs-object-filename fs-object)
|
(define (fs-object-file-name fs-object)
|
||||||
(combine-path (fs-object-parent fs-object)
|
(combine-path (fs-object-parent fs-object)
|
||||||
(fs-object-name fs-object)))
|
(fs-object-name fs-object)))
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
|
|
||||||
; Example:
|
; Example:
|
||||||
; (define (disc-usage ds)
|
; (define (disc-usage ds)
|
||||||
; (dir-stream-fold-right ds (lambda (fso sum subdirs) (list (fs-object-filename fso)
|
; (dir-stream-fold-right ds (lambda (fso sum subdirs) (list (fs-object-file-name fso)
|
||||||
; (apply + sum (map cadr subdirs))
|
; (apply + sum (map cadr subdirs))
|
||||||
; subdirs))
|
; subdirs))
|
||||||
; (lambda (fso accu)
|
; (lambda (fso accu)
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
fs-object-parent
|
fs-object-parent
|
||||||
fs-object-name
|
fs-object-name
|
||||||
fs-object-info
|
fs-object-info
|
||||||
fs-object-filename))
|
fs-object-file-name))
|
||||||
|
|
||||||
(define-interface dir-stream-predicates-interfaces
|
(define-interface dir-stream-predicates-interfaces
|
||||||
(export fs-object-size-less-then?
|
(export fs-object-size-less-then?
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
fs-object-last-accessed-in?
|
fs-object-last-accessed-in?
|
||||||
fs-object-created-in?
|
fs-object-created-in?
|
||||||
fs-object-name-matches?
|
fs-object-name-matches?
|
||||||
ds-object-filename-matches?))
|
ds-object-file-name-matches?))
|
||||||
|
|
||||||
(define-interface streams-interface
|
(define-interface streams-interface
|
||||||
(export the-empty-stream
|
(export the-empty-stream
|
||||||
|
|
Loading…
Reference in New Issue