rmdir()

描述

删除 MicroSD 卡裡的资料夹,该资料夹必须是空的。

语法


SD.rmdir(dir_name)

参数

dir_name:要删除的资料夹路径,路径应该要以 “/” 分隔资料夹名称

回传

bool:如果资料夹成功删除则回传 true,反之则回传 false,如果要删除的资料夹不存在,回传的值可能是任何值

See also

mkdir()


函式库参考主页面

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.