[erlang-questions] differences in file:make_dir under Linux and Mac Os

Michal Ptaszek michal.ptaszek@REDACTED
Thu May 14 09:02:05 CEST 2009

Hello All,

I found some strange behaviour in file:make_dir/1 function:
depending on the operating system it returns different values.

Using Linux (Ubuntu 9.04):
1> file:make_dir("/").
{error,eexist}     % what's correct IMHO

Using Mac Os (10.5):
1> file:make_dir("/").

Is the behaviour intended?

I am using Erlang R12B5.

Kind regards,
Michal Ptaszek

More information about the erlang-questions mailing list