Ruby 1.9.2 リファレンスマニュアル
> ライブラリ一覧
> 組み込みライブラリ
> Fileクラス
> chmod
singleton method File.chmod
chmod(mode, *filename) -> Integer
-
ファイルのモードを mode に変更します。モードを変更したファイ
ルの数を返します。
- [PARAM] filename:
-
ファイル名を表す文字列を指定します。
- [PARAM] mode:
-
chmod(2) と同様に整数で指定します。
- [EXCEPTION] Errno::EXXX:
-
モードの変更に失敗した場合に発生します。