るりまサーチ

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

別のキーワード

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

ライブラリ

クラス

モジュール

キーワード

検索結果

<< 1 2 > >>

File.writable?(path) -> bool (27100.0)

FileTest.#writable? と同じです。

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

@param path パスを表す文字列を指定します。...

FileTest.#writable?(file) -> bool (21219.0)

ファイルがカレントプロセスにより書き込み可能である時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。

...false を返します。

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

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

File::Stat#writable? -> bool (21113.0)

書き込み可能な時に真を返します。

...書き込み可能な時に真を返します。

//emlist[][ruby]{
p File::Stat.new($0).writable? #=> true
//}...

Shell#writable?(file) -> bool (18207.0)

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

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

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

@see FileTest.#writable?...

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

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

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

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

@see FileTest.#writable?...

絞り込み条件を変える

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

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

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

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

@see FileTest.#writable?...

File.world_writable?(path) -> bool (15106.0)

path が全てのユーザから書き込めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。

...ない場合は nil を返します。

整数の意味はプラットフォームに依存します。

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

//emlist[例][ruby]{
m = File.world_writable?("/tmp")
"%o" % m #=> "777"
//}...
...でない場合は nil を返します。

整数の意味はプラットフォームに依存します。

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

//emlist[例][ruby]{
m = File.world_writable?("/tmp")
"%o" % m #=> "777"
//}...

File::Stat#world_writable? -> Integer | nil (9113.0)

全てのユーザから書き込めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。

...ーミッションを表す
整数を返します。そうでない場合は nil を返します。

整数の意味はプラットフォームに依存します。

//emlist[][ruby]{
m = File.stat("/tmp").world_writable? # => 511
sprintf("%o", m) # => "777"
//}...

FileTest.#world_writable?(path) -> bool (9100.0)

path が全てのユーザから書き込めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。

...を表す
整数を返します。そうでない場合は nil を返します。

整数の意味はプラットフォームに依存します。

@param path パスを表す文字列を指定します。

m = FileTest.world_writable?("/tmp")
"%o" % m #=> "777"...

ruby 1.9 feature (120.0)

ruby 1.9 feature ruby version 1.9.0 は開発版です。 以下にあげる機能は将来削除されたり互換性のない仕様変更がなされるかもしれません。 1.9.1 以降は安定版です。 バグ修正がメインになります。

...
* [platform]: 対応プラットフォームの追加

== 1.9.0

=== 2006-09-16

: Struct#inspect

=== 2006-09-14

: digest.rb
: Digest::Base.file

=== 2006-09-13

: Hash#compare_by_identity
: Hash#compare_by_identity?
: Hash#identical
: Hash#identical?

=== 2006-09-12

: Hash#compare_by_ident...
...-05-22

: accept

((<ruby-core:7917>))

=== 2006-03-21

: MatchData#[] [compat]

名前による参照
((<ruby-dev:28446>))

=== 2006-03-03

: FileUtils.cp_r [lib] [compat]

remove_destination オプションの追加
((<ruby-dev:28417>))

=== 2006-02-15

: instance_eval

((<ruby-core:73...
...3
: Pathname#world_readable? [lib] [new]
: Pathname#world_writable? [lib] [new]

: File::Stat#world_readable? [ruby] [new]
: File::Stat#world_writable? [ruby] [new]

=== 2004-01-12
: File.world_readable? [ruby] [new]
: File.world_writable? [ruby] [new]

=== 2004-01-10
: Dir#inspect [ruby] [new]...

絞り込み条件を変える

<< 1 2 > >>