Re: filelib:ensure_dir/1 and symlink to dir

Danil Zagoskin <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <CAJ6dJEiMfDUfC+-ZASP-MZbFR-=1G_ViyTbH+KK9B9RWJFn6Rg@mail.gmail.com>
José, Anthony, thank you.
I didn't notice the previous thread.
Sorry for that.


On Tue, Jul 1, 2014 at 3:20 AM, Anthony Ramine <[email protected]> wrote:

> https://github.com/erlang/otp/pull/417
>
> --
> Anthony Ramine
>
> Le 30 juin 2014 à 21:45, José Valim <[email protected]> a
> écrit :
>
> > Danil, I am assuming you are running on Erlang 17.1. If so, this bug has
> been reported in a previous thread:
> >
> > http://erlang.org/pipermail/erlang-bugs/2014-June/004465.html
> >
> >
> >
> > José Valim
> > www.plataformatec.com.br
> > Skype: jv.ptec
> > Founder and Lead Developer
> >
> >
> > On Sun, Jun 29, 2014 at 11:02 PM, Danil Zagoskin <[email protected]> wrote:
> > For example, I have a directory "foo" and a symlink "bar" to "foo".
> > While I can access file, I get error trying to ensure_dir:
> > 2> file:read_file("bar/baz").
> > {ok,<<>>}
> > 3> filelib:ensure_dir("bar/baz").
> > {error,eexist}
> >
> > This is because filelib:do_is_dir/2 does not expect a symlink to dir.
> >
> > Is it expected behavior or should I submit a patch for that?
> > (This breaks at least lager which does filelib:ensure_dir before opening
> a log)
> >
> > --
> > Danil Zagoskin | [email protected]
> >
> > _______________________________________________
> > erlang-bugs mailing list
> > [email protected]
> > http://erlang.org/mailman/listinfo/erlang-bugs
> >
> >
> > _______________________________________________
> > erlang-bugs mailing list
> > [email protected]
> > http://erlang.org/mailman/listinfo/erlang-bugs
>
>


-- 
Danil Zagoskin | [email protected]

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.