Home
last modified time | relevance | path

Searched refs:filepath (Results 1 – 18 of 18) sorted by relevance

/AliOS-Things-master/components/uvoice/stream/
A Duvoice_download.c25 char *filepath; in net_download_work() local
54 if (!filepath) { in net_download_work()
60 snprintf(filepath, filepath_len, "%s/%s", in net_download_work()
63 M_LOGI("download to %s\n", filepath); in net_download_work()
67 snd_free(filepath); in net_download_work()
72 fp = os_fopen(filepath, "wb+"); in net_download_work()
74 M_LOGE("open %s failed !\n", filepath); in net_download_work()
75 snd_free(filepath); in net_download_work()
85 snd_free(filepath); in net_download_work()
141 ret = os_remove(filepath); in net_download_work()
[all …]
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmain.c319 char filepath[256] = {0}; in mpy_run() local
323 strcat(filepath, "/"); in mpy_run()
324 strcat(filepath, filename); in mpy_run()
326 strcpy(filepath, filename); in mpy_run()
329 char *p = strrchr(filepath, '/'); in mpy_run()
335 if(p >= filepath) { in mpy_run()
336 path_items[0] = mp_obj_new_str_via_qstr(filepath, p - filepath); in mpy_run()
338 path_items[0] = mp_obj_new_str_via_qstr(filepath, filepath - p); in mpy_run()
343 if (filepath != NULL) { in mpy_run()
344 pyexec_file(filepath); in mpy_run()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmain.c319 char filepath[256] = {0}; in mpy_run() local
323 strcat(filepath, "/"); in mpy_run()
324 strcat(filepath, filename); in mpy_run()
326 strcpy(filepath, filename); in mpy_run()
329 char *p = strrchr(filepath, '/'); in mpy_run()
335 if(p >= filepath) { in mpy_run()
336 path_items[0] = mp_obj_new_str_via_qstr(filepath, p - filepath); in mpy_run()
338 path_items[0] = mp_obj_new_str_via_qstr(filepath, filepath - p); in mpy_run()
343 if (filepath != NULL) { in mpy_run()
344 pyexec_file(filepath); in mpy_run()
/AliOS-Things-master/components/py_engine/adapter/
A Dmain.c520 int8_t filepath[256] = { 0 }; in mpy_run() local
523 getcwd(filepath, sizeof(filepath)); in mpy_run()
524 strcat(filepath, "/"); in mpy_run()
525 strcat(filepath, filename); in mpy_run()
527 strcpy(filepath, filename); in mpy_run()
530 int8_t *p = strrchr(filepath, '/'); in mpy_run()
535 if (p >= filepath) { in mpy_run()
536 path_items[0] = mp_obj_new_str_via_qstr(filepath, p - filepath); in mpy_run()
538 path_items[0] = mp_obj_new_str_via_qstr(filepath, filepath - p); in mpy_run()
543 if (filepath != NULL) { in mpy_run()
[all …]
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/network/http/
A Dmodule_http.c49 char *filepath; member
164 if (param->filepath == NULL) { in http_download_func()
241 if (param->filepath != NULL) { in http_download_func()
242 amp_free(param->filepath); in http_download_func()
358 if (param->filepath != NULL) { in task_http_request_func()
359 amp_free(param->filepath); in task_http_request_func()
505 if (JS_IsString(filepath)) { in native_http_get_param()
513 JS_FreeValue(ctx, filepath); in native_http_get_param()
529 if (http_param->filepath != NULL) { in http_param_free()
530 amp_free(http_param->filepath); in http_param_free()
[all …]
/AliOS-Things-master/components/py_engine/engine/tools/
A Dtransymodem.py129 def download_file(portnum, baudrate, filepath, devpath): argument
288 ymodemTrans(serialport, filepath)
365 filepath = "".join(downloadconfig["filepath"])
369 filepath = basepath + '/' + "".join(downloadconfig["filepath"])
377 print("filepath is %s" % filepath)
382 …download_file(downloadconfig["serialport"], downloadconfig['baudrate'], filepath, downloadconfig['…
/AliOS-Things-master/components/py_engine/modules/network/http/
A Dhttpclient.c53 char *filepath; member
584 if (!aos_access(filepath, 0)) { in task_http_download_func()
585 aos_remove(filepath); in task_http_download_func()
590 int fd = aos_open(filepath, O_CREAT | O_RDWR | O_APPEND); in task_http_download_func()
631 aos_remove(filepath); in task_http_download_func()
666 char *filepath = mp_obj_str_get_str(args[2]); in obj_http_download() local
675 http_param->filepath = filepath; in obj_http_download()
679 result = task_http_download_func(url, filepath); in obj_http_download()
714 char *filepath = mp_obj_str_get_str(args[2]); in obj_http_request() local
723 http_param->filepath = filepath; in obj_http_request()
[all …]
A Dmodhttp.c49 char *filepath; member
194 if (!aos_access(http_param->filepath, 0)) { in task_http_download_func()
195 aos_remove(http_param->filepath); in task_http_download_func()
198 int fd = aos_open(http_param->filepath, O_CREAT | O_RDWR | O_APPEND); in task_http_download_func()
406 const char *filepath = NULL; in http_download() local
444 filepath = mp_obj_str_get_str(mp_obj_dict_get(data, index)); in http_download()
445 http_param->filepath = filepath; in http_download()
A Dhttputility.c44 char *filepath; member
327 http_param->filepath = duk_get_string(ctx, 1); in native_http_download()
329 amp_debug(MOD_STR, "filepath: %s", http_param->filepath); in native_http_download()
/AliOS-Things-master/components/oss/src/utils/
A DFileSystemUtils.h28 bool RemoveFile(const std::string &filepath);
39 bool RemoveFile(const std::wstring& filepath);
A DFileSystemUtils.cc84 bool AlibabaCloud::OSS::RemoveFile(const std::string &filepath) in RemoveFile() argument
86 int ret = ::remove(filepath.c_str()); in RemoveFile()
164 bool AlibabaCloud::OSS::RemoveFile(const std::wstring& filepath) in RemoveFile() argument
166 int ret = oss_wremove(filepath.c_str()); in RemoveFile()
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/
A Dinput_data.py223 filepath = os.path.join(dest_directory, filename)
224 if not gfile.Exists(filepath):
233 filepath, _ = urllib.request.urlretrieve(data_url, filepath, _progress)
238 data_url, filepath))
241 statinfo = os.stat(filepath)
245 tarfile.open(filepath, 'r:gz').extractall(dest_directory)
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/flatbuffers/include/flatbuffers/
A Dutil.h447 std::string StripExtension(const std::string &filepath);
450 std::string GetExtension(const std::string &filepath);
453 std::string StripPath(const std::string &filepath);
456 std::string StripFileName(const std::string &filepath);
468 void EnsureDirExists(const std::string &filepath);
472 std::string AbsolutePath(const std::string &filepath);
/AliOS-Things-master/components/py_engine/external/app_mgr/
A Dapp_mgr.c101 static int task_http_download_func(char *url, char *filepath) in task_http_download_func() argument
110 int fd = aos_open(filepath, O_CREAT | O_RDWR); in task_http_download_func()
/AliOS-Things-master/components/ulog/src/
A Dulog_session_file.c728 int ulog_fs_log_file_path(char *filepath) in ulog_fs_log_file_path() argument
736 if (NULL == filepath) { in ulog_fs_log_file_path()
740 len = strlen(filepath); in ulog_fs_log_file_path()
748 memcpy(guc_logfile_path, filepath, len); in ulog_fs_log_file_path()
751 is_last_char_slash = (filepath[len - 1] == '/'); in ulog_fs_log_file_path()
/AliOS-Things-master/components/ulog/include/ulog/
A Dulog.h169 int ulog_fs_log_file_path(char *filepath);
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/network/http/
A Dmodule_http.c47 char *filepath; member
319 http_param->filepath = duk_get_string(ctx, 1); in native_http_download()
321 amp_debug(MOD_STR, "filepath: %s", http_param->filepath); in native_http_download()
/AliOS-Things-master/components/oss/src/external/tinyxml2/
A Dtinyxml2.cpp2129 static FILE* callfopen( const char* filepath, const char* mode ) in callfopen() argument
2131 TIXMLASSERT( filepath ); in callfopen()
2135 errno_t err = fopen_s( &fp, filepath, mode ); in callfopen()
2140 FILE* fp = fopen( filepath, mode ); in callfopen()

Completed in 36 milliseconds