erlang遍历目录

{ok, Cwd} = file:get_cwd().
Filelist = filelib:fold_files( Cwd, ".*", true, fun(File, Acc) -> [File|Acc] end, []).
io:format("~p", [Filelist]).

 

posted @ 2018-04-18 17:21  自由出土文物  阅读(225)  评论(0编辑  收藏  举报