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