Project

General

Profile

Bug #238

Ruby doesn't respect the Windows read-only flag

Added by jredville (Jim Deville) about 12 years ago. Updated about 9 years ago.

Status:
Rejected
Priority:
Normal
Target version:
-
ruby -v:
[ruby-core:17674]

Description

=begin
If you create a file on Windows, attrib +r the file, to give it read-only permissions, and then run Ruby 1.8 or 1.9 and do a Dir.delete on that file, Ruby will delete the file. It should probably throw a SystemCallError to match other platforms.

This has been tested on Vista SP1 with Ruby 1.8 and 1.9.
=end

Also available in: Atom PDF