Hi Charles, dir? only works in the current directory. If you look at the source of dir?, you will see that. Do this:
?? dir? Then do this: info? target where target is a file that is not in the current directory. It returns none, so your test always fails because none is not true. You should use the absolute path. foreach file read dir: join root sub [ if (dir? dir/:file) ... You can probably also use clean-path in other situations to get the absolute path. Anton. > 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 -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.