update file close() to support directory

This commit is contained in:
hathach committed 2018-10-17 17:21:49 +07:00
1 parent 1264eb8567
commit 0284917c82
4 files changed
+12 -5

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ void File::close (void)
{
if ( _hdl )
{
_fs->_f_close(_hdl);
_fs->_f_close(_hdl, _is_dir);
rtos_free(_hdl);
}