{"categories":["Ruby"],"description":"\u6982\u8981 File.chmod \u8a73\u7d30 \u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u5909\u66f4\u3057\u307e\u3059\u3002 \u7b2c\u4e00\u5f15\u6570\u306b\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u8868\u3059\u6570\u5024\u3002 \u7b2c\u4e8c\u5f15\u6570\u4ee5\u964d\u306b\u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5217\u6319\u3057\u307e\u3059\u3002 \u623b\u308a\u5024\u306f\u5909\u66f4\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u6570\u3067\u3059\u3002 \u30b5\u30f3\u30d7\u30eb \u30b3\u30fc\u30c9 # encoding: utf-8 def create_file(filename, contents) File.open(filename, 'w:utf-8') do |f| f.print contents end end def get_permission_file_name(filename) sample_info = `ls -ltra | grep #{filen\u2026","type":"rich","url":"https://tbpgr.hatenablog.com/entry/20140105/1388886198","title":"Ruby | File | chmod","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","author_name":"tbpg","published":"2014-01-05 10:43:18","height":"190","author_url":"https://blog.hatena.ne.jp/tbpg/","width":"100%","blog_url":"https://tbpgr.hatenablog.com/","image_url":null,"blog_title":"Tbpgr Blog","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20140105%2F1388886198\" title=\"Ruby | File | chmod - Tbpgr Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}