[erlang-bugs] Bug in filename:dirname?

Ville Koivula ville@REDACTED
Wed Jan 14 16:01:16 CET 2009


Hi,

Why is filename:dirname working differently than UNIX equivalent?

koivula@REDACTED:~ % dirname "/foo"
/
koivula@REDACTED:~ % dirname "/foo/"
/

vs.

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


Best regards,
Ville Koivula





More information about the erlang-bugs mailing list