* Close a file and force cached data and directory information * to be written to the storage device. * * \return true for success, false for failure. * Reasons for failure include no file is open or an I/O error. */
| 104 | * Reasons for failure include no file is open or an I/O error. |
| 105 | */ |
| 106 | bool SdBaseFile::close() { |
| 107 | bool rtn = sync(); |
| 108 | type_ = FAT_FILE_TYPE_CLOSED; |
| 109 | return rtn; |
| 110 | } |
| 111 | |
| 112 | /** |
| 113 | * Check for contiguous file and return its raw block range. |
no test coverage detected