ForNext
Only Do What Only You Can Do
186. set file permissions
Hyperpolyglot Interpreted Languages: PHP, Perl, Python, Ruby より (2012.05.08)
VBScript
JScript
Perl
chmod 0755, "/tmp/foo";
PHP
chmod("/tmp/foo", 0755);
Python
os.chmod('/tmp/foo', 0755)
Ruby
File.chmod(0755, "/tmp/foo")