blob: 938ffcd2e36b79f7a3fc3315d79f3fb75713b867 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
---
title: isFile
slug: XPInstall_API_Reference/File_Object/Methods/isFile
translation_of: Archive/Mozilla/XPInstall/Reference/File_Object/Methods/isFile
---
<h2 id="Summary" name="Summary">概要</h2>
<p>引数に指定した FileSpecObject がファイルであるかどうかを示す真偽値を返します。</p>
<h2 id="Method_of" name="Method_of">Method of</h2>
<p><a href="/ja/docs/XPInstall_API_Reference/File_Object">File</a> オブジェクト</p>
<h2 id="Syntax" name="Syntax">構文</h2>
<pre class="syntaxbox">boolean isFile (FileSpecObject NativeFolderPath);
</pre>
<h3 id="Parameters" name="Parameters">引数</h3>
<p><code>isFile</code> メソッドは次の引数をとります。</p>
<dl>
<dt><code>NativeFolderPath</code></dt>
<dd>照会するファイルオブジェクトを表す FileSpecObject</dd>
</dl>
<h3 id="Returns" name="Returns">戻り値</h3>
<p>引数に指定した FileSpecObject がファイルであるかどうかを示す真偽値</p>
<h2 id="Example" name="Example">例</h2>
<pre class="brush:js">var f = getFolder( "Program", "sample.txt" );
if ( File.isFile(f) ) {
// ファイルであった場合の処理
}}</pre>
|