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

[REBOL] Re: Filtering files in directories.

From: greggirwin:mindspring at: 2-Jan-2003 11:48

Hi Ed, ED> How do I get only specified files in a directory? IOW, how do I do the ED> equivalent of pattern matching, if I want all JPG files, how do I return ED> only *.jpg? ED> So far, all the examples I have found involve loading all the files ED> first and then extracting the ones you need or not from the series that ED> is returned. You can open a directory port directly if you want, though I don't think it will gain you much in this case. Under Windows you can use the FindFirstFile and FindNextFile APIs but that locks you in to the OS. Is performance an issue, or is it just curiosity? -- Gregg