PathUtil class
ファイル パス操作のユーティリティ クラス。
メソッド
get |
ディレクトリ内のサブ フォルダーを取得する |
get |
ディレクトリ内のファイルを取得する |
is |
パスがディレクトリかどうかを確認する |
メソッドの詳細
getDirectories(string)
ディレクトリ内のサブ フォルダーを取得する
static function getDirectories(path: string): string[]
パラメーター
- path
-
string
ルート ディレクトリのパス。
戻り値
string[]
ディレクトリ内のサブ フォルダー。
getFiles(string, boolean)
ディレクトリ内のファイルを取得する
static function getFiles(path: string, includeSubFolders?: boolean): string[]
パラメーター
- path
-
string
ルート ディレクトリのパス。
- includeSubFolders
-
boolean
サブ フォルダーを含めるかどうか。
戻り値
string[]
ディレクトリ内のファイル。
isDirectory(string)
パスがディレクトリかどうかを確認する
static function isDirectory(path: string): boolean
パラメーター
- path
-
string
ディレクトリのパス。
戻り値
boolean
パスがディレクトリの場合は True。それ以外の場合は false。