newLISP Fan Club

Forum => newLISP in the real world => Topic started by: Dmi on January 14, 2008, 12:01:37 AM

Title: detecting symbolic links
Post by: Dmi on January 14, 2008, 12:01:37 AM
$ 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?
Title:
Post by: newdep on January 17, 2008, 05:26:05 AM
There is one in ->

//http://www.newlisp.org/index.cgi?page=Code_Snippets



But not sure if you seek that ;-)