PHP to Ruby
Convert PHP code into Ruby!
-
chown
Posted on June 7th, 2009 No commentsThe 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');
PHP, Ruby chown, directory, file, filesystem, owner, permissionsLeave a reply


