filename:dirname(".").

Ulf Wiger (AL/EAB) <>
Fri Oct 1 12:53:31 CEST 2004


Just a thought: 

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

3> filename:dirname(".").
"."
4> filename:dirname("ebin").
"."
5> filename:dirname(filename:absname(".")).
"/home/etxuwig/work/dialyzer/dialyzer"
6> filename:absname(".").
"/home/etxuwig/work/dialyzer/dialyzer/."

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.

/Uffe



More information about the erlang-questions mailing list