From: Usaku NAKAMURA Date: 2011-05-18T03:16:33+09:00 Subject: [ruby-core:36279] [Ruby 1.9 - Bug #4712] File.writable? inaccurate in windows Issue #4712 has been updated by Usaku NAKAMURA. Thank you, Roger. Currently we don't support NTFS ACLs. This is the one of lacks of the important features, I think. We shall support it someday. The problem is who/when/how does it... ---------------------------------------- Bug #4712: File.writable? inaccurate in windows http://redmine.ruby-lang.org/issues/4712 Author: Roger Pack Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: - Hello. Here's what happens (when a user doesn't have admin privileges in windows 7): c:\Program Files (x86)\NetBeans 6.9.1>irb --simple-prompt >> File.writable?('.') => true >> File.writable?('./uninstall.exe') => true >> File.open('./uninstall.exe', 'wb') Errno::EACCES: Permission denied - ./uninstall.exe from (irb):4:in `initialize' from (irb):4:in `open' from (irb):4 So I think writable was returning true in error here. Cheers! -r -- http://redmine.ruby-lang.org