[REBOL] Second request for help: globbing on a block of filenames Re:(2)
From: ssayer:acuson at: 7-Sep-2000 14:53
Oops, it occurs to me that I forgot to add the tail refinement to my first
find (meaning a file feeder~fodder.r~ would be missed for example). This
should work better:
has-backup-file?: func [
{Returns true if any item in block ends with r~}
arg [block!]
][
forall arg [
if (result: find/tail first arg "r~") [
if (length? result) = 2 [
return true
]
]
]
return false
]
Later,
Stephen
On Thu, 7 Sep 2000, S. Sayer wrote: