Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
Fri Oct 1 12:53:31 CEST 2004

Just a thought: 

Shouldn't filename:dirname(".") return either "..", or the same as

3> filename:dirname(".").
4> filename:dirname("ebin").
5> filename:dirname(filename:absname(".")).
6> filename:absname(".").

Besides, does filename:absname(".") really return what it should?

At least I have a tendency to use dirname/1 as a synonym for parent_dir/1 (which doesn't exist), but in this case, the results are a bit unexpected.


More information about the erlang-questions mailing list