cfclient.file.directoryExists

ディレクトリが存在するかのチェック

次の例に示すように、directoryExists 関数を使用してディレクトリが存在するかをチェックできます。

<cfset existresponse=cfclient.file.directoryExists("myNewDir")>
<cfif existresponse >
<!---Directory Exists --->
</cfif>


メソッドの概要

directoryExists (path)

  • パラメーター
    • path ディレクトリの絶対パスまたは相対パス(そのディレクトリ名を含む)。

戻り値 – 指定したディレクトリの有無を示す boolean 値

ヘルプをすばやく簡単に入手

新規ユーザーの場合