Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: New find question

From: SunandaDH::aol::com at: 25-Jun-2005 5:01

Kai
> files: read %/c/ foreach file files[ if > find/any file "p*.htm" > = [ read= file ... > **Access Error: Cannot open= /C/p3.htm.32105.#01
I'm assuming you *do* have a file called /C/p3.htm.32105.#01 If not, something strange has happened with the read. If you do, then the find *will* match. Try this: (assuming you are looking for p???...???.htm) files: read %/c/ foreach file files [ if all [not dir? file ;; eliminate folders %.htm = suffix? lowercase file ;; only .htm at the end #"p" = first file ][ ;; beginning with p or P print file ] ] suffix? is a mezzanine in reach versions of View. If the version you are using doesn't have, check the source ov View1.3 for the code. Sunanda