[erlang-questions] Current working directory

Ulf Wiger (TN/EAB) ulf.wiger@REDACTED
Wed Apr 16 09:15:22 CEST 2008


Adam Lindberg skrev:
> Sorry, I was too hasty! It just came to me after sending the email:
> 
> 1> filename:absname("").
> "/home/alind"
> 2>
> 
> But it was not that intuitive. ;-)

Then, perhaps this one will appeal to you more:

   file:get_cwd() -> {ok, Dir} | {error, Reason}

BR,
Ulf W



More information about the erlang-questions mailing list