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

Mikael Pettersson <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CAM43=SM8ZZkdK+_AL2r56_1vhoWCsPQyrYVC-wNEjMavr6XXog@mail.gmail.com>
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.