Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A quick...

    require 'fileutils'
    include FileUtils
...and you can almost pretend you are writing bash.

http://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/index.html



FileUtils is a step back as far as I'm concerned. In fact, all the file-stuff is both ill-documented and anti-ruby-readability.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: