13#include "tuya_cloud_types.h"
165TUYA_FILE
tal_fopen(CONST CHAR_T* path, CONST CHAR_T* mode);
189INT_T
tal_fread(VOID_T* buf, INT_T bytes, TUYA_FILE file);
226CHAR_T*
tal_fgets(CHAR_T* buf, INT_T len, TUYA_FILE file);
250INT_T
tal_fseek(TUYA_FILE file, INT64_T offs, INT_T whence);
INT_T tal_faccess(IN CONST CHAR_T *filepath, IN INT_T mode)
Judge if the file can be access
INT_T tal_fs_remove(CONST CHAR_T *path)
Remove directory
INT_T tal_dir_is_regular(TUYA_FILEINFO info, BOOL_T *is_regular)
Check whether the node is a normal file
INT_T tal_fwrite(VOID_T *buf, INT_T bytes, TUYA_FILE file)
write file
INT_T tal_fseek(TUYA_FILE file, INT64_T offs, INT_T whence)
Seek to the offset position of the file
TUYA_FILE tal_fopen(CONST CHAR_T *path, CONST CHAR_T *mode)
Open file
INT_T tal_fs_is_exist(CONST CHAR_T *path, BOOL_T *is_exist)
Check whether the file or directory exists
INT_T tal_fs_mkdir(CONST CHAR_T *path)
Make directory
INT_T tal_fs_mode(CONST CHAR_T *path, UINT_T *mode)
Get file mode
INT_T tal_dir_name(TUYA_FILEINFO info, CONST CHAR_T **name)
Get the name of the file node
INT64_T tal_ftell(TUYA_FILE file)
Get current position of file
INT_T tal_fclose(TUYA_FILE file)
Close file
INT_T tal_fgetc(IN TUYA_FILE file)
read the next character from stream
CHAR_T * tal_fgets(CHAR_T *buf, INT_T len, TUYA_FILE file)
Read string from file
INT_T tal_ftruncate(INT_T fd, UINT64_T length)
truncate one file according to the length
INT_T tal_fgetsize(IN CONST CHAR_T *filepath)
Get file size
INT_T tal_fflush(IN TUYA_FILE file)
flush the IO read/write stream
INT_T tal_feof(TUYA_FILE file)
Check wheather to reach the end fo the file
INT_T tal_dir_close(TUYA_DIR dir)
Close directory
INT_T tal_fileno(IN TUYA_FILE file)
get the file fd
INT_T tal_dir_is_directory(TUYA_FILEINFO info, BOOL_T *is_dir)
Check whether the node is a directory
INT_T tal_dir_open(CONST CHAR_T *path, TUYA_DIR *dir)
Open directory
INT_T tal_fs_rename(CONST CHAR_T *path_old, CONST CHAR_T *path_new)
File rename
INT_T tal_dir_read(TUYA_DIR dir, TUYA_FILEINFO *info)
Read directory
INT_T tal_fsync(INT_T fd)
write buffer to flash
INT_T tal_fread(VOID_T *buf, INT_T bytes, TUYA_FILE file)
Read file