るりまサーチ

最速Rubyリファレンスマニュアル検索!
42件ヒット [1-42件を表示] (0.040秒)
トップページ > クエリ:path[x] > クエリ:file[x] > クラス:Shell[x]

別のキーワード

  1. _builtin path
  2. pathname to_path
  3. _builtin absolute_path
  4. _builtin to_path
  5. file path

ライブラリ

キーワード

検索結果

Shell#expand_path(path) -> String (6237.0)

Fileクラスにある同名のクラスメソッドと同じです.

...
File
クラスにある同名のクラスメソッドと同じです.

@param path ファイル名を表す文字列を指定します。

@see File.expand_path...

Shell#open(path, mode) -> File | Dir (269.0)

path がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。

...
path
がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。

@param path 開きたいパスを指定します。

@param mode アクセスモードを指定します。path がディレクトリの場合は無視されます。

@see File.open, Dir....

Shell#unlink(path) -> self (162.0)

path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。

...
path
がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。

@param path 削除したいパスを指定します。

@see File.unlink, Dir.unlink...

Shell#foreach(path = nil, &block) -> () (156.0)

pathがファイルなら, File#foreach pathがディレクトリなら, Dir#foreach の動作をします。

...
path
がファイルなら, File#foreach
path
がディレクトリなら, Dir#foreach
の動作をします。

@param path ファイルもしくはディレクトリのパスを文字列で指定します。

使用例
require 'shell'
Shell
.verbose = false
sh = Shell.new
sh.foreach("/tmp"){...

Shell#readlink(path) -> String (130.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param path シンボリックリンクを表す文字列を指定します。

@see File.readlink...

絞り込み条件を変える

Shell#truncate(path, length) -> 0 (130.0)

File クラスにある同名のクラスメソッドと同じです.

...
File
クラスにある同名のクラスメソッドと同じです.

@param path パスを表す文字列を指定します。

@param length 変更したいサイズを整数で与えます。

@see File.truncate...

Shell#split(pathname) -> [String] (123.0)

File クラスにある同名のクラスメソッドと同じです.

...
File
クラスにある同名のクラスメソッドと同じです.

@param pathname パス名を表す文字列を指定します。

@see File.split...