Documentation

Documentation

Includes

tuya_hal_fs.h

#include "tuya_hal_fs.h"
#include "tuya_hal_fs.h"

Macros

Marco __TUYA_UNI_FS_H__

#define __TUYA_UNI_FS_H__

      

Functions

Func uni_mkdir

OPERATE_RET uni_mkdir(const char* path);
/**
 * @brief create directory, ignore if existed
 * 
 * @param[in]       path        path of the directory 
 * @return  OPRT_OK on success, others on failed, please refer to tuya_error_code.h  
 */

Func uni_mkdir_all

OPERATE_RET uni_mkdir_all(const char* path);
/**
 * @brief create multi-level directory
 * 
 * @param[in]       path        path of the directory 
 * @return  OPRT_OK on success, others on failed, please refer to tuya_error_code.h  
 */

Func uni_remove

OPERATE_RET uni_remove(const char* path);
/**
 * @brief remove file or directory, ignore if not existed
 * 
 * @param[in]       path        the path of the file or directory
 * @return  OPRT_OK on success, others on failed, please refer to tuya_error_code.h  
 */

Func uni_is_exist

BOOL_T uni_is_exist(const char* path);
/**
 * @brief check if the file or directory existed
 * 
 * @param[in]       path        the path of the file or directory
 * @return  TRUE on existed, others on not existed
 */

Func uni_is_readable

BOOL_T uni_is_readable(const char* path);
/**
 * @brief check if the file readable
 * 
 * @param[in]       path        the path of the file
 * @return  TRUE on readable, others on un-readable
 */

Func uni_is_writable

BOOL_T uni_is_writable(const char* path);
/**
 * @brief check if the file writeable
 * 
 * @param[in]       path        the path of the file
 * @return  TRUE on writable, others on un-writable
 */

Func uni_is_executable

BOOL_T uni_is_executable(const char* path);
/**
 * @brief check if the file excuteable
 * 
 * @param[in]       path        the path of the file
 * @return  TRUE on excutable, others on un-excutable
 */

Vars

Consts

Types

Typedefs