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.