detecting symbolic links

Q&A's, tips, howto's
Locked
Dmi
Posts: 408
Joined: Sat Jun 04, 2005 4:16 pm
Location: Russia
Contact:

detecting symbolic links

Post by Dmi »

Code: Select all

$ ln -s "." test
$ newlisp
> (directory "test")
true
So I can make a file symlinks, which will cycle the file tree iterators, or will go through mounted filesystems which is not always attended.

But in most other cases following symlinks is very useful because it is a regular Unix convention.

Can we have an option for (directory?) which will trigger symlink detection?
WBR, Dmi

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

There is one in ->
http://www.newlisp.org/index.cgi?page=Code_Snippets

But not sure if you seek that ;-)
-- (define? (Cornflakes))

Locked