{ok, Cwd} = file:get_cwd(). Filelist = filelib:fold_files( Cwd, ".*", true, fun(File, Acc) -> [File|Acc] end, []). io:format("~p", [Filelist]).
erlang遍历目录
猜你喜欢
转载自www.cnblogs.com/ziyouchutuwenwu/p/8876306.html
今日推荐
周排行