Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class method

FileUtils.chmod_R

chmod_R(mode, list, noop: nil, verbose: nil, force: nil)

Changes permission bits on the named files (in list) to the bit pattern represented by mode.

Example
FileUtils.chmod_R 0700, "/tmp/app.#{$$}"
FileUtils.chmod_R "u=wrx", "/tmp/app.#{$$}"
See also #chmod_R .chmod .chown .chdir also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0