Web lists-archives.com

Ruby returning invalid entry sizes




If you run this command with Linux Ruby or RubyInstaller [1]:

   $ ruby -e 'p File.size(".")'
   65536

you correctly get the IO Blocks for the current directory. However not with
Cygwin Ruby:

   $ ruby -e 'p File.size(".")'
   0

[1] http://rubyinstaller.org


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple