From: "mame (Yusuke Endoh)" Date: 2012-03-27T01:05:14+09:00 Subject: [ruby-core:43692] [ruby-trunk - Feature #4712][Feedback] File.writable? inaccurate in windows Issue #4712 has been updated by mame (Yusuke Endoh). Status changed from Assigned to Feedback Assignee deleted (mame (Yusuke Endoh)) Hello, usa wrote: > The problem is who/when/how does it... We need contribution. I mark this ticket as Feedback. -- Yusuke Endoh ---------------------------------------- Feature #4712: File.writable? inaccurate in windows https://bugs.ruby-lang.org/issues/4712#change-25189 Author: rogerdpack (Roger Pack) Status: Feedback Priority: Normal Assignee: Category: Target version: 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://bugs.ruby-lang.org/