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

[REBOL] dir?

From: chalz:earthlink at: 28-Jun-2002 22:18

Okay, here's a question regarding the dir? function. Here's a little sample code: root: %/c/somedir/anotherdir/adir/ sub: %bdir/ foreach dir read join root sub [ if (dir? dir) AND (none? find dir "TN-") [ etcetcetc ] ] Problem is, when dir is, in fact, a directory, dir? is returning false. I've no idea why, and my only fix around it is to use (dir? rejoin [root sub dir]) .. Shouldn't dir? return true? It has in the past for me in a similar situation... *boggle* Help? --Charles