chmodのサンプル。
$ chmod 666 ./zura.txt
をRubyで実現したい。
File.chmod(666, './zura.txt')
これでは、思った通りの動作をせず。
File.chmod(0666, './zura.txt')
こっちが正解。
tags: Ruby zurazure
Posted by NI-Lab. (@nilab)
chmodのサンプル。
$ chmod 666 ./zura.txt
をRubyで実現したい。
File.chmod(666, './zura.txt')
これでは、思った通りの動作をせず。
File.chmod(0666, './zura.txt')
こっちが正解。
tags: Ruby zurazure
Posted by NI-Lab. (@nilab)