Lines Matching defs:path
139 int MakeDirRec(const char *path, mode_t mode, int lastPath)
141 APPSPAWN_CHECK(path != NULL && *path != '\0', return -1, "Invalid path to create");
144 const char *p = path;
145 char *curPos = strchr(path, slash);
153 int ret = memcpy_s(buffer, PATH_MAX, path, p - path - 1);
154 APPSPAWN_CHECK(ret == 0, return -1, "Failed to copy path");
162 if (mkdir(path, mode) == -1 && errno != EEXIST) {
290 char path[PATH_MAX] = {};
300 int len = snprintf_s(path, sizeof(path), sizeof(path) - 1, "%s%s", files->paths[i], fileName);
301 APPSPAWN_CHECK(len > 0 && (size_t)len < sizeof(path), ret = APPSPAWN_SANDBOX_INVALID;
303 cJSON *root = GetJsonObjFromFile(path);
305 continue, "Failed to load app data sandbox config %{public}s", path);
331 APPSPAWN_LOGW(" Current path %{public}s/%{public}s ", dirPath, dp->d_name);
334 char *path = strdup(buffer);
335 DumpCurrentDir(buffer, bufferLen, path);
336 free(path);