Re: File#directory? docs
Roger Pack <[email protected]> Tue, 4 May 2010 11:58:18 -0600
| Newsgroups | gmane.comp.lang.ruby.documentation |
|---|---|
| Message-ID | <[email protected]> |
Sure submit a patch to redmine.ruby-lang.org On Sat, May 1, 2010 at 12:14 PM, Ilkka Laukkanen <[email protected]> wrote: > Hi, > > I just noticed for the first time that if you have a symlink, say > "foo", that points at a directory, both > > =A0File.symlink? 'foo' > > and > > =A0File.directory? 'foo' > > return true. While this is a bit misleading in my opinion, it should > definitely be documented in File.directory?. So here's a tiny little > patch against trunk that documents this caveat in File#directory?. > What do you think? > > -- > Ilkka >