Change file permissions with Ruby

You can say

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

The leading zero is meaningful.

Henning Koch Over 12 years ago