Convert PHP code into Ruby!
RSS icon Email icon Home icon
  • chmod

    Posted on June 4th, 2009 RubyLove No comments

    The chmod function is used to change the permissions (or mode) on a specific file or directory.

    PHP

    chmod('/home/ruby/file.php', 0777)

    Ruby

    File.chmod(0777, '/home/ruby/file.php')

    Leave a reply