[erlang-questions] How to identify symlinks with Erlang

Jordan Wilberding <>
Sat Mar 31 23:08:05 CEST 2007


I was wondering if there is a way to identify if a directory is a 
symlink to another directory in Erlang?

The problem I am having is that when you install the wine, it creates 
symlinks like

~/.wine/dosdevices/z: -> /

This means when you try to use filelib:fold_files("~/.",..) it goes 
endlessly, since it keeps recursing back into the symlink.

Anyone have any ideas?

Jordan Wilberding

More information about the erlang-questions mailing list