Home
last modified time | relevance | path

Searched refs:new_path (Results 1 – 8 of 8) sorted by relevance

/AliOS-Things-master/components/py_engine/external/app_mgr/
A Dapp_upgrade.c60 int pyamp_ota_file_plus_name(char *file_path1, char *file_path2, char *new_path, int new_path_len) in pyamp_ota_file_plus_name() argument
65 if ((file_path1 == NULL) || (file_path2 == NULL) || (new_path == NULL)) { in pyamp_ota_file_plus_name()
70 memset(new_path, 0x00, new_path_len); in pyamp_ota_file_plus_name()
72 strncpy(new_path, file_path1, file_path1_len); in pyamp_ota_file_plus_name()
73 if (new_path[file_path1_len - 1] != '/') { in pyamp_ota_file_plus_name()
74 new_path[file_path1_len++] = '/'; in pyamp_ota_file_plus_name()
76 strncpy(&new_path[file_path1_len], file_path2, file_path2_len); in pyamp_ota_file_plus_name()
/AliOS-Things-master/components/amp/services/app_mgr/
A Dapp_upgrade.c100 int ota_file_plus_name(char *file_path1, char *file_path2, char *new_path, int new_path_len) in ota_file_plus_name() argument
107 (new_path == NULL)) { in ota_file_plus_name()
112 memset(new_path, 0x00, new_path_len); in ota_file_plus_name()
114 strncpy(new_path, file_path1, file_path1_len); in ota_file_plus_name()
115 if (new_path[file_path1_len - 1] != '/') { in ota_file_plus_name()
116 new_path[file_path1_len++] = '/'; in ota_file_plus_name()
118 strncpy(&new_path[file_path1_len], file_path2, file_path2_len); in ota_file_plus_name()
/AliOS-Things-master/components/py_engine/tests/extmod/
A Dvfs_basic.py42 def rename(self, old_path, new_path): argument
43 print(self.id, "rename", old_path, new_path)
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dvfs_fat.c230 const char *new_path = mp_obj_str_get_str(path_out); in fat_vfs_rename() local
231 FRESULT res = f_rename(&self->fatfs, old_path, new_path); in fat_vfs_rename()
236 res = f_rename(&self->fatfs, old_path, new_path); in fat_vfs_rename()
A Dvfs_posix.c274 const char *new_path = vfs_posix_get_path_str(self, new_path_in); in vfs_posix_rename() local
276 int ret = rename(old_path, new_path); in vfs_posix_rename()
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmoduos.c371 const char *new_path = mp_obj_str_get_str(new_path_in); in mod_os_rename() local
374 int r = rename(old_path, new_path); in mod_os_rename()
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmoduos.c365 const char *new_path = mp_obj_str_get_str(new_path_in); in mod_os_rename() local
368 int r = rename(old_path, new_path); in mod_os_rename()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmoduos.c365 const char *new_path = mp_obj_str_get_str(new_path_in); in mod_os_rename() local
368 int r = rename(old_path, new_path); in mod_os_rename()

Completed in 13 milliseconds