file:delete/1 is inconsistent across OS

José Valim <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <CAGnRm4KydGaUamuVnb=MHVYQz5-a-=NN3GYbfGX4rS6ZP8nC4w@mail.gmail.com>
file:delete/1 is able to remove read-only files on Mac OS X (and I assume
Unix) but it is unable to do so Windows.

On Windows, it returns {:error, :eacces}. After manually adding owner write
permission to the file, even via Erlang API, I am able delete it on Windows
too.

Verified on Erlang/OTP 17 [erts-6.3].

*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Lead Developer

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
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.