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

Steve Davis steven.charles.davis@REDACTED
Thu May 14 13:56:18 CEST 2009


I don't have both platforms to compare (no mac). However, I would
strongly suspect that the return value would depend on the POSIX
return value from the underlying OS. Others here may know more/for
sure.

regs,
/s

On May 14, 2:02 am, Michal Ptaszek <michal.ptas...@REDACTED
consulting.com> wrote:
> 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("/").
> {error,eisdir}
>
> Is the behaviour intended?
>
> I am using Erlang R12B5.
>
> Kind regards,
> --
> Michal Ptaszekwww.erlang-consulting.com
> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@REDACTED://www.erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list