raw option is missing for file:rename()

Shunichi Shinohara shino.shun@REDACTED
Mon Nov 29 02:45:17 CET 2021


Thanks for your reply.

I have decided to use prim_file for the time being, too.
Hope it will be included in OTP, or I will try sooner or later.

Shino

2021年11月28日(日) 2:55 Mikael Pettersson <mikpelinux@REDACTED>:
>
> On Fri, Nov 26, 2021 at 7:17 AM Shunichi Shinohara <shino.shun@REDACTED> wrote:
> >
> > Hi List,
> >
> > Currently, file:rename() function does not have a variant with options, then
> > raw option can not be specified.
> > cf. https://www.erlang.org/doc/man/file.html#rename-2
> > Is it reasonable to add file:rename/3 with options in the third argument
> > and make it accept option raw?
> >
> > # Similar thing happened for file:delete at OTP 24:
> > # https://github.com/erlang/otp/pull/2634
>
> A file:rename/3 that accepts a raw option makes perfect sense. We use
> prim_file quite a bit, and this would help us stay on official APIs.
>
> /Mikael


More information about the erlang-questions mailing list