Change file permissions with Ruby

Updated . Posted . Visible to the public.

You can say

File.chmod(0604, '/path/to/file') # rw----r--

The leading zero is meaningful.

Profile picture of Henning Koch
Henning Koch
Last edit
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2011-07-21 12:59)