Lines Matching refs:path
70 INT32 OsShellCmdDoChdir(const CHAR *path)
81 if (path == NULL) {
88 ERROR_OUT_IF(strlen(path) > PATH_MAX, SetErr(ENOTDIR, "cd error"), return -1);
90 ret = VfsNormalizePath(shellWorkingDirectory, path, &fullpath);
105 /* copy full path to working directory */
114 /* release normalize directory path name */
120 STATIC CHAR *OsLsGetFullpath(const CHAR *path, struct dirent *pdirent)
126 if (path[1] != '\0') {
127 pathLen = strlen(path) + strlen(pdirent->d_name) + 2; /* 2, path + '/' + d_name + '\0' */
133 ret = snprintf_s(fullpath, pathLen, pathLen - 1, "%s/%s", path, pdirent->d_name);
160 CHAR *path = NULL;
169 path = strdup("/");
170 if (path == NULL) {
174 ret = VfsNormalizePath(NULL, pathname, &path);
181 d = opendir(path);
183 PRINT_ERR("No such directory = %s\n", path);
184 free(path);
186 PRINTK("Directory %s:\n", path);
191 fullpath = OsLsGetFullpath(path, pdirent);
193 free(path);
213 free(path);
416 /* Is source path exist? */
423 /* Is source path a directory? */
435 /* Is dest path exist? */
438 /* Is dest path a directory? */
449 /* Add the source file after dest path. */
617 /* To determine whether a wildcard character exists in a path */
674 /* Split the path with wildcard characters */
704 /* Handling entry of the path with wildcard characters */
851 /* Is dest path exist? */
855 /* Is dest path a directory? */