Home
last modified time | relevance | path

Searched full:path (Results 3226 - 3250 of 34098) sorted by relevance

1...<<121122123124125126127128129130>>...1364

/foundation/filemanagement/app_file_service/tools/backup_tool/src/
H A Dtools_op.cpp91 std::string path = ""; in GetFIleNums() local
92 path = string(isWholeRestore? BConstants::BACKUP_TOOL_RECEIVE_DIR : in GetFIleNums()
95 printf("bundle path = %s\n", path.c_str()); in GetFIleNums()
96 DIR *dir = opendir(path.c_str()); in GetFIleNums()
98 fprintf(stderr, "Open path error %s\n", path.c_str()); in GetFIleNums()
110 fprintf(stderr, "The path dir is empty!\n"); in GetFIleNums()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/
H A Dsoftbus_file_receive_listener_test.cpp71 string path = string(SoftBusFileReceiveListener::GetRecvPath()); in HWTEST_F() local
72 EXPECT_EQ(path, TEST_PATH); in HWTEST_F()
74 path.clear(); in HWTEST_F()
75 path = string(SoftBusFileReceiveListener::GetRecvPath()); in HWTEST_F()
76 EXPECT_EQ(path, TEST_PATH); in HWTEST_F()
78 path.clear(); in HWTEST_F()
79 path = string(SoftBusFileReceiveListener::GetRecvPath()); in HWTEST_F()
80 EXPECT_EQ(path, ""); in HWTEST_F()
/foundation/filemanagement/dfs_service/test/unittests/utils/system/
H A Dutils_directory_test.cpp73 string path = "/data/tdd"; in HWTEST_F() local
74 ForceCreateDirectory(path); in HWTEST_F()
92 string path = "/data/tdd"; in HWTEST_F() local
94 ForceCreateDirectory(path, mode); in HWTEST_F()
112 string path = "/data/tdd"; in HWTEST_F() local
116 ForceCreateDirectory(path, mode, uid, gid); in HWTEST_F()
134 string path = "/data/tdd"; in HWTEST_F() local
135 ForceRemoveDirectory(path); in HWTEST_F()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/
H A Dtruncate.cpp35 auto [resGetFirstArg, path, unused] = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8StringPath(); in Sync()
37 UniError(EINVAL).ThrowErr(env, "Invalid path"); in Sync()
49 int ret = truncate(path.get(), len); in Sync()
66 auto [resGetFirstArg, path, unused] = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8StringPath(); in Async()
68 UniError(EINVAL).ThrowErr(env, "Invalid path"); in Async()
82 auto cbExec = [path = string(path.get()), len](napi_env env) -> UniError { in Async()
83 int ret = truncate(path.c_str(), len); in Async()
/foundation/filemanagement/app_file_service/interfaces/kits/ndk/fileuri/include/
H A Doh_file_uri.h35 * @brief Get uri From path.
37 * @param path Input a pointer to the path string.
38 * @param length The length of the input path.
44 FileManagement_ErrCode OH_FileUri_GetUriFromPath(const char *path, unsigned int length, char **result);
47 * @brief Get path From uri.
51 * @param result Output a pointer to a path string. Please use free() to clear the resource.
59 * @brief Gets the uri of the path or directory where the uri is located.
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/path_napi/
H A Djs_path.h23 #include "draw/path.h"
29 explicit JsPath(Path* path) : m_path(path) {}; in JsPath() argument
35 static napi_value CreateJsPath(napi_env env, Path* path);
67 Path* GetPath();
103 Path* m_path = nullptr;
/third_party/curl/tests/libtest/
H A Dtestutil.c139 TCHAR *path; in win32_load_system_library() local
146 path = malloc(sizeof(TCHAR) * (systemdirlen + 1 + filenamelen)); in win32_load_system_library()
147 if(!path) in win32_load_system_library()
151 written = GetSystemDirectory(path, (unsigned int)systemdirlen); in win32_load_system_library()
155 if(path[written - 1] != _T('\\')) in win32_load_system_library()
156 path[written++] = _T('\\'); in win32_load_system_library()
158 _tcscpy(path + written, filename); in win32_load_system_library()
160 return LoadLibrary(path); in win32_load_system_library()
/third_party/freetype/
H A Dinstall.py46 src_file = os.path.join(src_path, file)
47 dst_file = os.path.join(dst_path, file)
61 if not os.path.exists(target_dir):
88 freetype_path.add_argument('--gen-dir', help='generate path of log', required=True)
89 freetype_path.add_argument('--source-dir', help='generate path of log', required=True)
91 tar_file_path = os.path.join(args.source_dir, "freetype-2.12.1.tar.xz")
92 target_dir = os.path.join(args.gen_dir, "freetype")
93 target_include_dir = os.path.join(target_dir, "include")
/third_party/cups/
H A Dinstall.py56 src_file = os.path.join(src_path, file)
57 dst_file = os.path.join(dst_path, file)
63 if not os.path.exists(target_dir):
93 cups_path.add_argument('--gen-dir', help='generate path of log', required=True)
94 cups_path.add_argument('--source-dir', help='generate path of log', required=True)
96 tar_file_path = os.path.join(args.source_dir, "cups-2.4.0-source.tar.gz")
97 target_dir = os.path.join(args.gen_dir, "cups-2.4.0")
98 convs_dir = os.path.join(target_dir, "conf")
/third_party/gn/src/gn/
H A Dninja_target_command_util.h41 const std::string& path = path_out.str(); in operator ()() local
42 if (path[0] == '"') in operator ()()
43 out << " \"" << tool_switch_ << path.substr(1); in operator ()()
45 out << " " << tool_switch_ << path; in operator ()() local
77 const std::string& path = path_out.str(); in operator ()() local
78 if (path[0] == '"') in operator ()()
79 out << " \"-I" << path.substr(1); in operator ()()
81 out << " -I" << path; in operator ()() local
/third_party/libuv/test/
H A Dtest-pipe-bind-error.c31 # define BAD_PIPENAME "/path/to/unix/socket/that/really/should/not/be/there"
173 char path[512]; in TEST_IMPL() local
174 memset(path, '@', sizeof(path)); in TEST_IMPL()
176 uv_pipe_bind2(&pipe, path, sizeof(path), UV_PIPE_NO_TRUNCATE)); in TEST_IMPL()
180 path, in TEST_IMPL()
181 sizeof(path), in TEST_IMPL()
/third_party/mesa3d/bin/
H A Dmeson-cmd-extract.py40 help='Path the meson build directory')
45 def load_config(path: pathlib.Path) -> configparser.ConfigParser:
48 with path.open() as f:
76 path = pathlib.Path(args.build_dir, 'meson-private', 'cmd_line.txt')
77 if not path.exists():
82 conf = load_config(path)
/third_party/node/test/parallel/
H A Dtest-fs-promises-file-handle-read.js10 const path = require('path');
14 const tmpDir = tmpdir.path;
23 const filePath = path.resolve(tmpDir, file);
55 const filePath = fixtures.path('x.txt');
65 const filePath = fixtures.path('x.txt');
76 const filePath = fixtures.path('x.txt');
93 const filePath = fixtures.path('x.txt');
H A Dtest-fs-promises-file-handle-readFile.js15 const path = require('path');
19 const tmpDir = tmpdir.path;
24 const filePath = path.resolve(tmpDir, 'tmp-read-file.txt');
57 const filePathForHandle = path.resolve(tmpDir, 'dogs-running.txt');
73 const filePathForHandle = path.resolve(tmpDir, 'dogs-running1.txt');
88 const newFile = path.resolve(tmpDir, 'dogs-running2.txt');
113 const newFile = path.resolve(tmpDir, 'dogs-running3.txt');
H A Dtest-http2-compat-serverrequest-headers.js17 ':path': '/foobar',
24 assert.strictEqual(request.path, undefined);
27 assert.strictEqual(request.url, expected[':path']);
76 ':path': '/foobar',
101 ':path': '/foobar',
109 assert.strictEqual(request.path, undefined);
112 assert.strictEqual(request.url, expected[':path']);
138 ':path': '/foobar',
H A Dtest-runner-inspect.mjs5 import path from 'node:path';
17 fixtures.path('test-runner/default-behavior/index.test.js')
38 const args = ['--test', '--inspect=0', fixtures.path('test-runner/index.js')];
64 const coverageDirectory = path.join(tmpdir.path, 'coverage');
69 const coverage = JSON.parse(await fs.readFile(path.join(coverageDirectory, coverageFile)));
79 ['--test', fixtures.path('v8-coverage/basic.js')],
/third_party/node/deps/npm/test/lib/commands/
H A Dedit.js2 const path = require('path')
38 const semverPath = path.resolve(npm.prefix, 'node_modules', 'semver')
54 const semverPath = path.resolve(npm.prefix, 'node_modules', 'semver')
71 const semverPath = path.resolve(npm.prefix, 'node_modules', 'semver')
89 const semverPath = path.resolve(npm.prefix, 'node_modules', 'semver')
121 const scopedPath = path.resolve(npm.prefix, 'node_modules', '@npmcli', 'scoped-package')
128 const subdepPath = path.resolve(npm.prefix, 'node_modules', 'semver', 'node_modules', 'abbrev')
/third_party/node/deps/npm/node_modules/read-package-json-fast/lib/
H A Dindex.js4 const { resolve, dirname, join, relative } = require('path')
6 const rpj = path => readFile(path, 'utf8')
7 .then(data => readBinDir(path, normalize(stripUnderscores(parse(data)))))
9 er.path = path
14 const readBinDir = async (path, data) => {
26 const root = dirname(path)
/third_party/mesa3d/src/vulkan/registry/
H A Dupdate-aliases.py12 THIS_FILE = pathlib.Path(__file__)
13 CWD = pathlib.Path.cwd()
26 def get_aliases(xml_file: pathlib.Path):
101 def file_matches_path(file: str, path: str) -> bool:
102 # if path is a folder; match any file within
103 if path.endswith('/') and file.startswith(path):
105 return file == path
/third_party/libffi/
H A Dinstall.py43 patch_dir = os.path.join(src_path, "patch")
45 src_file = os.path.join(patch_dir, file)
46 dst_file = os.path.join(dst_path, file)
51 if not os.path.exists(target_dir):
65 libffi_path.add_argument('--gen-dir', help='generate path of log', required=True)
66 libffi_path.add_argument('--source-dir', help='generate path of log', required=True)
68 tar_file_path = os.path.join(args.source_dir, "libffi-3.4.2.tar.gz")
69 target_dir = os.path.join(args.gen_dir, "libffi-3.4.2")
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dremovexattr.c34 char path[PATH_MAX] = {0}; in removexattr_0100() local
35 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in removexattr_0100()
36 int fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in removexattr_0100()
46 int result = setxattr(path, name, value, strlen(value), XATTR_CREATE); in removexattr_0100()
58 result = getxattr(path, name, buf, sizeof(buf)); in removexattr_0100()
72 result = removexattr(path, name); in removexattr_0100()
78 result = getxattr(path, name, buf, sizeof(buf)); in removexattr_0100()
87 remove(path); in removexattr_0100()
/third_party/rust/crates/bindgen/book/src/
H A Dnon-system-libraries.md22 use std::path::PathBuf;
29 // Canonicalize the path as `rustc-link-search` requires an absolute
30 // path.
32 .expect("cannot canonicalize path");
34 // This is the path to the `c` headers file.
36 let headers_path_str = headers_path.to_str().expect("Path is not a valid string");
38 // This is the path to the intermediate object file for our library.
40 // This is the path to the static library file.
/third_party/python/Tools/freeze/
H A Dcheckextensions.py13 setup = os.path.join(e, 'Setup')
14 liba = os.path.join(e, 'lib.a')
15 if not os.path.isfile(liba):
51 w = os.path.join(e, w)
53 w = w[:2] + os.path.join(e, w[2:])
65 head, tail = os.path.split(w)
66 base, ext = os.path.splitext(tail)
69 w = os.path.join(head, tail)
/third_party/python/Tools/scripts/
H A Dbyext.py16 if os.path.isdir(arg):
18 elif os.path.isfile(arg):
37 full = os.path.join(dir, name)
38 if os.path.islink(full):
40 elif os.path.isdir(full):
46 head, ext = os.path.splitext(filename)
47 head, base = os.path.split(filename)
50 ext = os.path.normcase(ext)
H A Dfindnocoding.py20 for path in paths:
21 if os.path.isfile(path):
22 yield path.endswith(".py")
23 elif os.path.isdir(path):
24 for root, dirs, files in os.walk(path):
27 yield os.path.join(root, filename)

Completed in 11 milliseconds

1...<<121122123124125126127128129130>>...1364