Re: raw option is missing for file:rename()

Shunichi Shinohara <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CALxvy4JJKmxMy6cX5gq8PvDhHp656C5F5sqMzKMJqt3nqmn6CA@mail.gmail.com>
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 <[email protected]>:
>
> On Fri, Nov 26, 2021 at 7:17 AM Shunichi Shinohara <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.