lib/scripto/file_commands.rb
def chmod(file, mode)
      return if File.stat(file).mode == mode
      FileUtils.chmod(mode, file, verbose: verbose?)
    end
def chmod(file, mode)
      return if File.stat(file).mode == mode
      FileUtils.chmod(mode, file, verbose: verbose?)
    end
Like chmod mode file. Like all file commands, the operation will be
 printed out if verbose?.