From: Eric Wong Date: 2016-05-22T23:12:48+00:00 Subject: [ruby-core:75681] Re: [Ruby trunk Bug#12413] Dir#close does not raise IOError on already closed handle on OS X djberg96@gmail.com wrote: > Bug #12413: Dir#close does not raise IOError on already closed handle on OS X > https://bugs.ruby-lang.org/issues/12413 > * ruby -v: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15] > ---------------------------------------- > The docs for Dir#close say "Closes the directory stream. Any further > attempts to access dir will raise an IOError." Seems to be a documentation bug, fixed in r55120 IO#close and Dir#close are idempotent on 2.3+ https://bugs.ruby-lang.org/issues/10718 > Whereas on both Linux and Windows I get the expected error: > > IOError: closed directory Older version of Ruby? Unsubscribe: