るりまサーチ

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

別のキーワード

  1. _builtin filetest
  2. filetest symlink?
  3. filetest setuid?
  4. filetest sticky?
  5. filetest size?

検索結果

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

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

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

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

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

Pathname#symlink? -> bool (18123.0)

FileTest.symlink?(self.to_s) と同じです。

...FileTest.symlink?(self.to_s) と同じです。


@see FileTest.#symlink?...

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

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

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

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

@see FileTest.#symlink?...

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

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

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

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

@see FileTest.#symlink?...

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

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

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

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

@see FileTest.#symlink?...

絞り込み条件を変える

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

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

...たどっていくので
常にfalseを返します。

//emlist[][ruby]{
require 'fileutils'
outfile = $0 + ".ln"
FileUtils.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...

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

FileTest.#symlink? と同じです。

...
FileTest
.#symlink? と同じです。

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