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

[REBOL] Second request for help: globbing on a block of filenames Re:(2)

From: ssayer:acuson at: 7-Sep-2000 14:44

This one and the one before won't work as asked because they'll return true for files with r~ anywhere in the name. Try this instead (off the top of my head): has-backup-file?: func [ {Returns true if any item in block ends with r~} arg [block!] ][ forall arg [ if (result: find first arg "r~") [ if (length? result) = 2 [ return true ] ] ] return false ] On Thu, 7 Sep [2000johnkenyon--uk--ibm--com] wrote: