English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
このメソッドは特定のディレクトリの内容をリストアップするために使用されます。
list_dir(directory)
directory −内容を列挙する必要があるディレクトリ。
ディレクトリ内のファイル名を含むプロジェクトリスト。
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p~n",[file:list_dir(".")]).
現在の作業ディレクトリの内容に応じて、ファイルリストが表示されます。以下のプログラムの例を示します-
{ok,["helloworld.erl",".cg_conf","Newfile.txt","helloworld.beam"]}