るりまサーチ

最速Rubyリファレンスマニュアル検索!
87件ヒット [1-87件を表示] (0.027秒)
トップページ > クエリ:new[x] > クエリ:mkdir[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. openssl new
  2. _builtin new
  3. rexml/document new
  4. resolv new
  5. socket new

ライブラリ

クラス

キーワード

検索結果

Shell#mkdir(*path) -> Array (18130.0)

Dir.mkdirと同じです。 (複数可)

...Dir.mkdirと同じです。 (複数可)

@param path 作成するディレクトリ名を文字列で指定します。

@return 作成するディレクトリの一覧の配列を返します。

使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
p sh.mkdir("foo") #=>...

Shell::CommandProcessor#mkdir(*path) -> Array (18130.0)

Dir.mkdirと同じです。 (複数可)

...Dir.mkdirと同じです。 (複数可)

@param path 作成するディレクトリ名を文字列で指定します。

@return 作成するディレクトリの一覧の配列を返します。

使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
p sh.mkdir("foo") #=>...

Shell::Filter#mkdir(*path) -> Array (18130.0)

Dir.mkdirと同じです。 (複数可)

...Dir.mkdirと同じです。 (複数可)

@param path 作成するディレクトリ名を文字列で指定します。

@return 作成するディレクトリの一覧の配列を返します。

使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
p sh.mkdir("foo") #=>...

Pathname#cleanpath(consider_symlink = false) -> Pathname (25.0)

余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。

...= Pathname.new("//.././../")
path # => #<Pathname://.././../>
path.cleanpath # => #<Pathname:/>


require 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")...
...File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")
Dir.chdir("/tmp")

path.cleanpath # => #<Pathname:bar/bar>
path.cleanpath(true) # => #<Pathname:bar/foo/../bar>
//}...

Pathname#realpath -> Pathname (19.0)

余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。

...") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil

Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")

Dir.chdir("/tmp")

p path.realpath

# => ruby 1.8.0 (2003-10-10) [i586-linu...

絞り込み条件を変える

Pathname#realpath(basedir = nil) -> Pathname (19.0)

余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。

...") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil

Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")

Dir.chdir("/tmp")

p path.realpath

# => ruby 1.8.0 (2003-10-10) [i586-linu...

Shell#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (13.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...ます。

@param file2 文字列でファイルへのパスを指定します。

require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[...

Shell#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (13.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...ます。

@param file2 文字列でファイルへのパスを指定します。

require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[...

Shell::CommandProcessor#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (13.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...ます。

@param file2 文字列でファイルへのパスを指定します。

require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[...

Shell::CommandProcessor#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (13.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...ます。

@param file2 文字列でファイルへのパスを指定します。

require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[...

絞り込み条件を変える

Shell::Filter#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (13.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...ます。

@param file2 文字列でファイルへのパスを指定します。

require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[...

Shell::Filter#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (13.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...ます。

@param file2 文字列でファイルへのパスを指定します。

require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[...