[erlang-questions] symlink error (I think)
Stanislav Sedov
stas@REDACTED
Mon Apr 15 06:15:19 CEST 2013
On Apr 14, 2013, at 12:10 PM, Dave Peticolas <dave@REDACTED> wrote:
> I believe file:read_file_info/1,2 will "follow" symlinks and give you information
> about whatever the link is pointing to. To get information about the link itself
> use file:read_link_info/1,2 instead. Despite the name, that function will also
> work on non-links, in which case you get the same information as
> file:read_file_info/1,2
>
I think you are right. It's basically the same situation as with stat(2)/lstat(2).
read_file_info/read_link_infi functions mimic what stat(2) and lstat(2) do.
--
ST4096-RIPE
More information about the erlang-questions
mailing list