[erlang-bugs] file:delete/1 is inconsistent across OS

José Valim jose.valim@REDACTED
Wed Jan 28 23:04:34 CET 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20150128/6fa9dd17/attachment.htm>


More information about the erlang-bugs mailing list