773件ヒット
[501-600件を表示]
(0.058秒)
ライブラリ
- ビルトイン (773)
キーワード
-
absolute
_ path (12) -
absolute
_ path? (6) - atime (12)
- basename (12)
- birthtime (11)
- blockdev? (12)
- chardev? (12)
- chmod (12)
- chown (12)
- ctime (12)
- delete (12)
- directory? (12)
- dirname (12)
- empty? (9)
- executable? (12)
-
executable
_ real? (12) - exist? (12)
- exists? (9)
- extname (12)
- file? (12)
- fnmatch (12)
- fnmatch? (12)
- ftype (12)
- grpowned? (12)
- identical? (12)
- join (12)
- lchmod (12)
- lchown (12)
- link (12)
- lstat (12)
- lutime (8)
- mkfifo (10)
- mtime (12)
- new (12)
- open (24)
- owned? (12)
- path (12)
- pipe? (12)
- readable? (12)
-
readable
_ real? (12) - readlink (12)
- realdirpath (12)
- realpath (12)
- rename (12)
- setgid? (12)
- setuid? (12)
- size (12)
- size? (12)
- socket? (12)
- split (12)
- stat (12)
- sticky? (12)
- symlink (12)
- symlink? (12)
- truncate (12)
- umask (24)
- unlink (12)
- utime (12)
-
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - zero? (12)
検索結果
先頭5件
-
File
. realdirpath(pathname , basedir = nil) -> String (2.0) -
与えられた pathname に対応する絶対パスを返します。
与えられた pathname に対応する絶対パスを返します。
pathname の最後のコンポーネントは存在していなくても例外は発生しません。
@param pathname ファイル名を指定します。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリを使用します。
@raise Errno::ENOENT ファイルが存在しない場合に発生します。 -
File
. realpath(pathname , basedir = nil) -> String (2.0) -
与えられた pathname に対応する絶対パスを返します。
...合に発生します。
//emlist[例][ruby]{
ENV["HOME"] # => "/home/matz"
File.symlink("testfile", "testlink")
File.realpath("testfile") # => "/home/matz/testfile"
File.realpath("testlink") # => "/home/matz/testfile"
File.realpath("..", "/tmp") # => "/"
//}... -
File
. rename(from , to) -> 0 (2.0) -
ファイルの名前を変更します。ディレクトリが異なる場合には移動も行い ます。rename(2) を参照してください。移動先のファ イルが存在する時には上書きされます。
...{
begin
File.rename("testfile", "testfile.bak") # => 0
File.rename("testfile", "testfile.bak")
rescue
# 2回目の rename 時にすでに testfile が存在しないため例外が発生する
$! # => #<Errno::ENOENT: No such file or directory @ rb_file_s_rename - (testfile, testfile.bak)>... -
File
. setgid?(path) -> bool (2.0) -
FileTest.#setgid? と同じです。
...
FileTest.#setgid? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
File
. setuid?(path) -> bool (2.0) -
FileTest.#setuid? と同じです。
...
FileTest.#setuid? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
File
. size(path) -> Integer (2.0) -
FileTest.#size と同じです。
...
FileTest.#size と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
File
. size?(path) -> Integer | nil (2.0) -
FileTest.#size? と同じです。
...
FileTest.#size? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
File
. socket?(path) -> bool (2.0) -
FileTest.#socket? と同じです。
...
FileTest.#socket? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
File
. split(pathname) -> [String] (2.0) -
pathname を dirname とbasename に分割して、2 要 素の配列を返します。
...pathname を dirname とbasename に分割して、2 要
素の配列を返します。
//emlist[][ruby]{
[File.dirname(pathname), File.basename(pathname)]
//}
と同じです。
@param pathname パス名を表す文字列を指定します。...