TuyaOS
uni_fs.h
浏览该文件的文档.
1
11#ifndef __TUYA_UNI_FS_H__
12#define __TUYA_UNI_FS_H__
13
14#include "tal_fs.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20
27OPERATE_RET uni_mkdir(const char* path);
28
35OPERATE_RET uni_mkdir_all(const char* path);
36
43OPERATE_RET uni_remove(const char* path);
44
51BOOL_T uni_is_exist(const char* path);
52
59BOOL_T uni_is_readable(const char* path);
60
67BOOL_T uni_is_writable(const char* path);
68
75BOOL_T uni_is_executable(const char* path);
76
77
78#ifdef __cplusplus
79} // extern "C"
80#endif /* __cplusplus */
81
82#endif // __TUYA_UNI_FS_H__
83
Common process - Initialization
OPERATE_RET uni_mkdir_all(const char *path)
create multi-level directory
BOOL_T uni_is_executable(const char *path)
check if the file excuteable
BOOL_T uni_is_exist(const char *path)
check if the file or directory existed
BOOL_T uni_is_writable(const char *path)
check if the file writeable
BOOL_T uni_is_readable(const char *path)
check if the file readable
OPERATE_RET uni_mkdir(const char *path)
create directory, ignore if existed
OPERATE_RET uni_remove(const char *path)
remove file or directory, ignore if not existed