Change file permissions with Ruby

Posted Almost 13 years ago. Visible to the public.

You can say

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

The leading zero is meaningful.

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