From 4e7d93b126598d7dd46e7ec8866925caf854ac76 Mon Sep 17 00:00:00 2001 From: Eric Knauel Date: Fri, 21 Feb 2003 10:08:38 +0000 Subject: [PATCH] A few lines of documentation for the functions in dir-stream-predicates --- scsh/dir-streams/README | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/scsh/dir-streams/README b/scsh/dir-streams/README index fef8bd2..869682a 100644 --- a/scsh/dir-streams/README +++ b/scsh/dir-streams/README @@ -89,3 +89,42 @@ TODO argument order (dir-stream-for-each dir-stream file-f dir-f) +The structure dir-stream-predicates defines some predicates the user +might find useful when programming with dir-streams. + +(fs-object-size-less-than? fs-object size) -> {#t, #f} +(fs-object-size-greater-than? fs-object size) -> {#t, #f} + +Check whether the lenght of the file represented by fs-object is +less/more than size bytes. + +(days->seconds days) -> integer +(hours->seconds hours) -> integer +(minutes->seconds minutes) -> integer + +Auxiliary functions for converting an integer representing a count of +days/hours/minutes to an integer representing that amount of time in +seconds. + +(fs-object-last-modified-in? fs-object pair) -> {#t, #f} +(fs-object-last-accessed-in? fs-object pair) -> {#t, #f} +(fs-object-created-in? fs-object pair) -> {#t, #f} + +pair is a pair representing an interval of time. This function checks +whether the date when then file represented by fs-object was last +modified/last-accessed/created lies in this interval (includes left +and right boundary of the interval). + +(fs-object-name-matches? fs-object regexp) -> {#t, #f} + +Returns true if regexp-search? for regexp matches the filename of the +file represented by fs-object. + +(ds-object-file-name-matches? fs-object regexp) -> {#t, #f} + +Returns true if regexp-search? for regexp matches the filename +(including the absolute path) of the file represented by fs-object. + + + +