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.