<div><br></div><div>I tried this on ubuntu as well:</div><br><div>test() -></div><div> File = "/home/ejoearm/work/bugs/share",</div><div> {ok, X1} = file:read_file_info(File),</div><div> {ok, X2} = file:read_link_info(File),</div>
<div> {X1#file_info.type, X2#file_info.type}.</div><div><br></div><div><div>> bug:test().</div><div>{directory,symlink}</div></div><div><br></div><div>So read_file_info does follow symlinks. But the man page says it can return type</div>
<div>symlink. Is this a bug in the manual page? Or have I misunderstood something.</div><div><br></div><div>/Joe</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div class="gmail_quote">On Mon, Apr 15, 2013 at 11:51 AM, Jon Schneider <span dir="ltr"><<a href="mailto:jon@axismilton.ltd.uk" target="_blank">jon@axismilton.ltd.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> I believe file:read_file_info/1,2 will "follow" symlinks and give you<br>
> information<br>
<br>
</div>Clearly there's a job to decide what these functions are _supposed_ to do<br>
exactly and fix code and documentation.<br>
<span class="HOEnZb"><font color="#888888"><br>
Jon<br>
<br>
<br>
</font></span></blockquote></div><br>