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

[REBOL] Re: dir?

From: chalz:earthlink at: 30-Jun-2002 22:43

> dir? only works in the current directory. > If you look at the source of dir?, you will > see that. Do this: > > ?? dir?
I keep forgetting I can read the source of functions. Bah!
> You should use the absolute path.
Yeah, I learned that one now ;)
> foreach file read dir: join root sub [ > if (dir? dir/:file) ...
Oo, that's nicer looking..
> You can probably also use clean-path in other > situations to get the absolute path.
Cool. Thanks for the info! --Charles