file:file_info/1 broken on R17

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

file:file_info/1 broken on R17

Andreas Schultz-2
Hi,

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:/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...

Andreas
--
--
Dipl. Inform.
Andreas Schultz

Reply | Threaded
Open this post in threaded view
|

file:file_info/1 broken on R17

Loïc Hoguin-2
On 06/10/2014 11:54 AM, Andreas Schultz wrote:

> Hi,
>
> 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:/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...

I reported that on erlang-bugs at the end of October 2013. Must not be
very high priority. :-)

--
Lo?c Hoguin
http://ninenines.eu

Reply | Threaded
Open this post in threaded view
|

file:file_info/1 broken on R17

Björn Gustavsson-3
In reply to this post by Andreas Schultz-2
On Tue, Jun 10, 2014 at 11:54 AM, Andreas Schultz <aschultz> wrote:
> Hi,
>
> file:file_info/1 is marked obsolete, but it is still there and
> should probably not be broken, right?

There is only a stub there. The actual function
was removed a long time ago.

Unfortunately the person who removed the
code (probably me) forgot to remove the
documentation as well.

We will remove the documentation in the upcoming
release.

/Bjorn

--
Bj?rn Gustavsson, Erlang/OTP, Ericsson AB