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

    Posted on June 7th, 2009 RubyLove No comments

    The chown function is used to change the owner of a specific file or directory.

    PHP

    chown('/home/ruby/file.php', 'john');

    Ruby

    require 'fileutils';
     
    FileUtils.chown('john', nil, '/home/ruby/file.php');

    Leave a reply