mkdir()

描述

在 MicroSD 卡上建立资料夹。建立资料夹时会把资料夹路径中所有不存在的资料夹都新增,举例来说要建立的资料夹路径为 a/b/c,如果资料夹 a、a/b、a/b/c 都不存在,则一共会建立三个资料夹,分别为 a、a/b、a/b/c。

语法


SD.mkdir(dir_name)

参数

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

回传

bool:如果建立资料夹成功则回传 true,反之回传 false

See also

rmdir()


函式库参考主页面

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.