Home
last modified time | relevance | path

Searched refs:fpath (Results 1 – 11 of 11) sorted by relevance

/AliOS-Things-master/components/amp_adapter/platform/aos/
A Daos_fs.c59 char fpath[128]; in aos_rmdir_r() local
61 snprintf(fpath, 128, "%s/%s", dir, entry->d_name); in aos_rmdir_r()
63 ret = aos_stat(fpath, &s); in aos_rmdir_r()
65 aos_printf("stat %s failed\n", fpath); in aos_rmdir_r()
75 ret = aos_rmdir_r(fpath); in aos_rmdir_r()
77 ret = aos_unlink(fpath); in aos_rmdir_r()
/AliOS-Things-master/components/cli/src/iobox/
A Drm.c51 char fpath[128]; in rrmdir() local
53 snprintf(fpath, 128, "%s/%s", dir, entry->d_name); in rrmdir()
55 ret = stat(fpath, &s); in rrmdir()
57 aos_cli_printf("stat %s failed\n", fpath); in rrmdir()
67 ret = rrmdir(fpath); in rrmdir()
69 ret = unlink(fpath); in rrmdir()
A Dls.c210 char fpath[FPATH_SIZE]; in ls_do() local
213 memset(fpath, 0, sizeof(fpath)); in ls_do()
221 snprintf(fpath, FPATH_SIZE, "/data/%s", entry->d_name); in ls_do()
222 if (strncmp(dir, fpath, len)) in ls_do()
226 snprintf(fpath, FPATH_SIZE, "%s%s", dir, entry->d_name); in ls_do()
228 snprintf(fpath, FPATH_SIZE, "%s/%s", dir, entry->d_name); in ls_do()
232 if (stat(fpath, &s)) { in ls_do()
233 aos_cli_printf("stat %s failed - %s\n", fpath, strerror(errno)); in ls_do()
242 ls_show(relative_path(fpath, dir), flags, s); in ls_do()
A Dcp.c130 char *fpath = get_path(from, entry->d_name); in cp_dir_to_dir() local
132 ret = cp_file_to_dir(fpath, to_dir); in cp_dir_to_dir()
133 free(fpath); in cp_dir_to_dir()
/AliOS-Things-master/components/py_engine/engine/tools/
A Dmpy_cross_all.py30 fpath = path + "/" + f variable
32 out_fpath = args.out + "/" + fpath[path_prefix_len:-3] + ".mpy"
38 fpath[path_prefix_len:],
39 fpath,
/AliOS-Things-master/components/amp_adapter/platform/linux/
A Daos_fs.c151 char fpath[128]; in aos_rmdir_r() local
153 snprintf(fpath, 128, "%s/%s", dir, entry->d_name); in aos_rmdir_r()
155 ret = stat(fpath, &s); in aos_rmdir_r()
157 aos_printf("stat %s failed\n", fpath); in aos_rmdir_r()
167 ret = aos_rmdir_r(fpath); in aos_rmdir_r()
169 ret = unlink(fpath); in aos_rmdir_r()
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/tests/
A Dtest_std.js144 var fd, fpath, fname, fdir, buf, buf2, i, files, err, fdate, st, link_path;
150 fpath = fdir + "/" + fname;
154 os.remove(fpath);
160 fd = os.open(fpath, os.O_RDWR | os.O_CREAT | os.O_TRUNC);
189 err = os.utimes(fpath, fdate, fdate);
192 [st, err] = os.stat(fpath);
218 assert(os.remove(fpath) === 0);
220 fd = os.open(fpath, os.O_RDONLY);
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmoduos.c412 char fpath[128]; in py_rrmdir() local
414 snprintf(fpath, 128, "%s/%s", dir, entry->d_name); in py_rrmdir()
416 ret = stat(fpath, &s); in py_rrmdir()
418 LOGE(LOG_TAG, "stat %s failed\n", fpath); in py_rrmdir()
428 ret = py_rrmdir(fpath); in py_rrmdir()
430 ret = unlink(fpath); in py_rrmdir()
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmoduos.c406 char fpath[128]; in py_rrmdir() local
408 snprintf(fpath, 128, "%s/%s", dir, entry->d_name); in py_rrmdir()
410 ret = stat(fpath, &s); in py_rrmdir()
412 LOGE(LOG_TAG, "stat %s failed\n", fpath); in py_rrmdir()
422 ret = py_rrmdir(fpath); in py_rrmdir()
424 ret = unlink(fpath); in py_rrmdir()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmoduos.c406 char fpath[128]; in py_rrmdir() local
408 snprintf(fpath, 128, "%s/%s", dir, entry->d_name); in py_rrmdir()
410 ret = stat(fpath, &s); in py_rrmdir()
412 LOGE(LOG_TAG, "stat %s failed\n", fpath); in py_rrmdir()
422 ret = py_rrmdir(fpath); in py_rrmdir()
424 ret = unlink(fpath); in py_rrmdir()
/AliOS-Things-master/components/cli/src/
A Dcli.c397 char fpath[256], fm[256] = {0}; in cli_tab_complete_path() local
483 memset(fpath, 0, 128); in cli_tab_complete_path()
484 snprintf(fpath, 128, "%s%s%s", dir, in cli_tab_complete_path()
488 __LINE__, fpath, m, n); in cli_tab_complete_path()
490 if (stat(fpath, &s)) { in cli_tab_complete_path()
491 cli_printf("stat %s failed - %s\n", fpath, strerror(errno)); in cli_tab_complete_path()

Completed in 16 milliseconds