889件ヒット
[201-300件を表示]
(0.136秒)
ライブラリ
- pathname (889)
キーワード
- <=> (12)
- == (12)
- === (12)
- absolute? (12)
- ascend (12)
- binread (12)
- binwrite (12)
- blockdev? (12)
- chardev? (12)
- children (12)
- cleanpath (12)
- delete (12)
- descend (12)
- directory? (12)
-
each
_ child (24) -
each
_ entry (12) -
each
_ filename (12) -
each
_ line (24) - empty? (9)
- eql? (12)
- executable? (12)
-
executable
_ real? (12) - exist? (12)
- file? (12)
- find (12)
- fnmatch (12)
- fnmatch? (12)
- glob (16)
- grpowned? (12)
- lchmod (12)
- lchown (12)
- lstat (12)
-
make
_ link (12) -
make
_ symlink (12) - mkpath (12)
- mountpoint? (12)
- open (24)
- opendir (12)
- owned? (12)
- pipe? (12)
- read (12)
- readable? (12)
-
readable
_ real? (12) - readlines (12)
- readlink (12)
- realdirpath (12)
- realpath (24)
- relative? (12)
-
relative
_ path _ from (12) - rmtree (12)
- root? (12)
- setgid? (12)
- setuid? (12)
- size? (12)
- socket? (12)
- split (12)
- stat (12)
- sticky? (12)
- sub (12)
-
sub
_ ext (12) - symlink? (12)
- truncate (12)
- unlink (12)
-
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - write (12)
- zero? (12)
検索結果
先頭5件
-
Pathname
# lstat -> File :: Stat (6102.0) -
File.lstat(self.to_s) と同じです。
...File.lstat(self.to_s) と同じです。
@see File.lstat... -
Pathname
# make _ link(old) -> 0 (6102.0) -
File.link(old, self.to_s) と同じです。
...File.link(old, self.to_s) と同じです。
@see File.link... -
Pathname
# make _ symlink(old) -> 0 (6102.0) -
File.symlink(old, self.to_s) と同じです。
...File.symlink(old, self.to_s) と同じです。
@see File.symlink... -
Pathname
# readable? -> bool (6102.0) -
FileTest.readable?(self.to_s) と同じです。
...FileTest.readable?(self.to_s) と同じです。
@see FileTest.#readable?... -
Pathname
# readable _ real? -> bool (6102.0) -
FileTest.readable_real?(self.to_s) と同じです。
...FileTest.readable_real?(self.to_s) と同じです。
@see FileTest.#readable_real?... -
Pathname
# readlines(*args) -> [String] (6102.0) -
IO.readlines(self.to_s, *args)と同じです。
...IO.readlines(self.to_s, *args)と同じです。
@see IO.readlines... -
Pathname
# readlink -> Pathname (6102.0) -
Pathname.new(File.readlink(self.to_s)) と同じです。
...Pathname.new(File.readlink(self.to_s)) と同じです。
@see File.readlink... -
Pathname
# realdirpath(basedir = nil) -> Pathname (6102.0) -
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に 存在しなくてもエラーになりません。
...
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に
存在しなくてもエラーになりません。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require "pathna......me"
path = Pathname("/not_exist")
path.realdirpath # => #<Pathname:/not_exist>
path.realpath # => Errno::ENOENT
# 最後ではないコンポーネント(/not_exist_1)も存在しないのでエラーになる。
path = Pathname("/not_exist_1/not_exist_2")
path.realdirpath # => Errno::ENOENT......//}
@see Pathname#realpath... -
Pathname
# realpath -> Pathname (6102.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
..."."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例......になります。
//emlist[例][ruby]{
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/../ba......r")
Dir.chdir("/tmp")
p path.realpath
# => ruby 1.8.0 (2003-10-10) [i586-linux]
# #<Pathname:/tmp/bar>
//}
@see Pathname#realdirpath, File.realpath...