[erlang-questions] file:file_info/1 broken on R17

Andreas Schultz aschultz@REDACTED
Tue Jun 10 11:54:01 CEST 2014


file:file_info/1 is marked obsolete, but it is still there and
should probably not be broken, right?

It get this when using it on a non-existing file:

root@REDACTED:/usr/src/erlang/xray_node# erl
Erlang/OTP 17 [erts-6.0.1] [source] [64-bit] [smp:2:2] [async-threads:10] [kernel-poll:false]

Eshell V6.0.1  (abort with ^G)
1> file:file_info("test").
** exception error: undefined function erlang:nif_error/1
     in function  file:file_info/1 (file.erl, line 128)

file:read_file_info works as expected...

Dipl. Inform.
Andreas Schultz

More information about the erlang-questions mailing list