[erlang-bugs] Bug in filename:dirname?

Ville Koivula <>
Wed Jan 14 16:01:16 CET 2009


Hi,

Why is filename:dirname working differently than UNIX equivalent?

:~ % dirname "/foo"
/
:~ % dirname "/foo/"
/

vs.

1> filename:dirname("/foo").
"/"
2> filename:dirname("/foo/").
"/foo"


Best regards,
Ville Koivula





More information about the erlang-bugs mailing list