るりまサーチ

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

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file umask
  4. file mtime
  5. file size

検索結果

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

FileTest.#symlink? と同じです。

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

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

FileTest.#symlink?(file) -> bool (21213.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 (21147.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 (18207.0)

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

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

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

@see FileTest.#symlink?...

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

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

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

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

@see FileTest.#symlink?...

絞り込み条件を変える

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

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

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

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

@see FileTest.#symlink?...