From: Intransition Date: 2012-02-07T07:17:45+09:00 Subject: Re: Make a file read-only? ------=_Part_758_11222331.1328566619476 Content-Type: multipart/alternative; boundary="----=_Part_759_23885884.1328566619476" ------=_Part_759_23885884.1328566619476 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Monday, February 6, 2012 3:34:07 PM UTC-5, Jos Backus wrote: > > On Mon, Feb 6, 2012 at 11:38 AM, Intransition wrote: > > $ chmod a-w file > > Ruby 1.9.3: > > FileUtils.chmod 'a-w', 'file' > > http://ruby-doc.org/ > > Nice! Almost worth kicking 1.8 totally to the curb for! :-) ------=_Part_759_23885884.1328566619476 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

On Monday, February 6, 2012 3:34:07 PM UTC-5, Jos Backus wrote:
On Mon, Feb 6, 2012 at 11:38 AM, Intransition wrote:
>   $ chmod a-w file

Ruby 1.9.3:

FileUtils.chmod 'a-w', 'file'

http://ruby-doc.org/



Nice! Almost worth kicking 1.8 totally to the curb for! :-)

------=_Part_759_23885884.1328566619476-- ------=_Part_758_11222331.1328566619476--