English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This method is used to determine whether the directory is indeed a directory. This is part of the filelib library.
is_dir(directoryname)
directoryname −This is the directory name, do you need to determine the directory name?
If the directory exists and is indeed a directory, it returns True.
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p~n",[filelib:is_dir("newdir")]).
If the directory exists, it outputs true.