Searched refs:new_path (Results 1 – 8 of 8) sorted by relevance
/AliOS-Things-master/components/py_engine/external/app_mgr/ |
A D | app_upgrade.c | 60 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 D | app_upgrade.c | 100 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 D | vfs_basic.py | 42 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 D | vfs_fat.c | 230 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 D | vfs_posix.c | 274 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 D | moduos.c | 371 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 D | moduos.c | 365 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 D | moduos.c | 365 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