るりまサーチ

最速Rubyリファレンスマニュアル検索!
51件ヒット [1-51件を表示] (0.038秒)
トップページ > クエリ:File[x] > クエリ:link[x] > クエリ:symlink?[x]

別のキーワード

  1. rss link=
  2. rss link
  3. socket pf_link
  4. socket iff_link2
  5. socket iff_link1

検索結果

File.symlink?(path) -> bool (45200.0)

FileTest.#symlink? と同じです。

...
File
Test.#symlink? と同じです。

@param path パスを表す文字列か IO オブジェクトを指定します。...

FileTest.#symlink?(file) -> bool (27313.0)

ファイルがシンボリックリンクである時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。

...た場合などには false を返します。

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

//emlist[例][ruby]{
IO.write("testfile", "test")
File
Test.symlink?("testfile") # => false
File
.symlink("testfile", "testlink")
File
Test.symlink?("testlink") # => true
//}...

File::Stat#symlink? -> false (27247.0)

シンボリックリンクである時に真を返します。 ただし、File::Statは自動的にシンボリックリンクをたどっていくので 常にfalseを返します。

...File::Statは自動的にシンボリックリンクをたどっていくので
常にfalseを返します。

//emlist[][ruby]{
require 'fileutils'
outfile = $0 + ".ln"
File
Utils.ln_s($0, outfile)
p File::Stat.new(outfile).symlink? #=> false
p File.lstat(outfile).symlink? #=> true
p FileTest...
....symlink?(outfile) #=> true
//}

@see File.lstat...

Shell#symlink?(file) -> bool (24307.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#symlink?...

Shell::CommandProcessor#symlink?(file) -> bool (24307.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#symlink?...

絞り込み条件を変える

Shell::Filter#symlink?(file) -> bool (24307.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#symlink?...