Home
last modified time | relevance | path

Searched refs:src_dir (Results 1 - 25 of 47) sorted by relevance

12

/third_party/skia/third_party/externals/zlib/google/
H A Dzip.cc53 explicit DirectFileAccessor(base::FilePath src_dir) : src_dir_(src_dir) {} in DirectFileAccessor() argument
103 ZipParams::ZipParams(const base::FilePath& src_dir, in ZipParams() argument
105 : src_dir_(src_dir), in ZipParams()
107 file_accessor_(new DirectFileAccessor(src_dir)) {} in ZipParams()
111 ZipParams::ZipParams(const base::FilePath& src_dir, int dest_fd) in ZipParams() argument
112 : src_dir_(src_dir), in ZipParams()
114 file_accessor_(new DirectFileAccessor(src_dir)) {} in ZipParams()
122 // Include all files from the src_dir (modulo the src_dir itsel in Zip()
240 ZipWithFilterCallback(const base::FilePath& src_dir, const base::FilePath& dest_file, const FilterCallback& filter_cb) ZipWithFilterCallback() argument
249 Zip(const base::FilePath& src_dir, const base::FilePath& dest_file, bool include_hidden_files) Zip() argument
261 ZipFiles(const base::FilePath& src_dir, const std::vector<base::FilePath>& src_relative_paths, int dest_fd) ZipFiles() argument
[all...]
H A Dzip_unittest.cc253 base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input"); in TestTimeStamp() local
256 base::FilePath src_file = src_dir.AppendASCII("test.txt"); in TestTimeStamp()
259 EXPECT_TRUE(base::CreateDirectory(src_dir)); in TestTimeStamp()
278 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp()
413 base::FilePath src_dir; in TEST_F() local
414 ASSERT_TRUE(GetTestDataDirectory(&src_dir)); in TEST_F()
415 src_dir = src_dir.AppendASCII("test"); in TEST_F()
421 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F()
426 base::FilePath src_dir; in TEST_F() local
439 base::FilePath src_dir; TEST_F() local
479 base::FilePath src_dir; TEST_F() local
[all...]
H A Dzip.h53 ZipParams(const base::FilePath& src_dir, const base::FilePath& dest_file);
56 ZipParams(const base::FilePath& src_dir, int dest_fd);
61 const base::FilePath& src_dir() const { return src_dir_; } in src_dir() function in zip::ZipParams
66 // |src_relative_paths|. They must be relative to the |src_dir| passed in the
68 // source paths must be under |src_dir| in the file system hierarchy.
123 // Zip the contents of src_dir into dest_file. src_path must be a directory.
125 // of src_dir will be at the root level of the created zip. For each file in
126 // src_dir, include it only if the callback |filter_cb| returns true. Otherwise
129 bool ZipWithFilterCallback(const base::FilePath& src_dir,
136 bool Zip(const base::FilePath& src_dir, cons
[all...]
/third_party/libfuse/test/
H A Dtest_examples.py130 src_dir = str(short_tmpdir.mkdir('src'))
153 work_dir = mnt_dir + src_dir
156 tst_readdir(src_dir, work_dir)
157 tst_readdir_big(src_dir, work_dir)
158 tst_open_read(src_dir, work_dir)
159 tst_open_write(src_dir, work_dir)
161 tst_passthrough(src_dir, work_dir)
162 tst_append(src_dir, work_dir)
163 tst_seek(src_dir, work_dir)
165 tst_rmdir(work_dir, src_dir)
[all...]
/third_party/node/deps/v8/third_party/zlib/google/
H A Dzip.cc49 explicit DirectFileAccessor(base::FilePath src_dir) in DirectFileAccessor() argument
50 : src_dir_(std::move(src_dir)) {} in DirectFileAccessor()
125 DirectFileAccessor default_accessor(params.src_dir); in Zip()
156 params->filter_callback.Run(params->src_dir.Append(path))); in Zip()
243 bool ZipWithFilterCallback(const base::FilePath& src_dir, in ZipWithFilterCallback() argument
246 DCHECK(base::DirectoryExists(src_dir)); in ZipWithFilterCallback()
247 return Zip({.src_dir = src_dir, in ZipWithFilterCallback()
252 bool Zip(const base::FilePath& src_dir, in Zip() argument
255 return Zip({.src_dir in Zip()
261 ZipFiles(const base::FilePath& src_dir, Paths src_relative_paths, int dest_fd) ZipFiles() argument
[all...]
H A Dzip_unittest.cc329 base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input"); in TestTimeStamp() local
332 base::FilePath src_file = src_dir.AppendASCII("test.txt"); in TestTimeStamp()
335 EXPECT_TRUE(base::CreateDirectory(src_dir)); in TestTimeStamp()
354 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp()
1011 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); in TEST_F() local
1017 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F()
1022 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); in TEST_F() local
1028 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/false)); in TEST_F()
1033 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); in TEST_F() local
1040 base::CopyDirectory(src_dir, src_dir_russia in TEST_F()
1071 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); TEST_F() local
1148 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); TEST_F() local
1185 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); TEST_F() local
1224 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); TEST_F() local
1289 const base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input"); TEST_F() local
1319 const base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input"); TEST_F() local
1372 const base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input"); global() local
[all...]
H A Dzip.h92 base::FilePath src_dir; member
109 // the ZIP file. If this is empty, the whole contents of |src_dir| are
112 // These paths must be relative to |src_dir| and will be used as the file
113 // names in the created ZIP file. All files must be under |src_dir| in the
146 // Zip the contents of src_dir into dest_file. src_path must be a directory.
148 // of src_dir will be at the root level of the created zip. For each file in
149 // src_dir, include it only if the callback |filter_cb| returns true. Otherwise
151 bool ZipWithFilterCallback(const base::FilePath& src_dir,
158 bool Zip(const base::FilePath& src_dir,
165 // in |src_relative_paths| are relative to the |src_dir| an
[all...]
/third_party/node/deps/zlib/google/
H A Dzip.cc49 explicit DirectFileAccessor(base::FilePath src_dir) in DirectFileAccessor() argument
50 : src_dir_(std::move(src_dir)) {} in DirectFileAccessor()
125 DirectFileAccessor default_accessor(params.src_dir); in Zip()
156 params->filter_callback.Run(params->src_dir.Append(path))); in Zip()
246 bool ZipWithFilterCallback(const base::FilePath& src_dir, in ZipWithFilterCallback() argument
249 DCHECK(base::DirectoryExists(src_dir)); in ZipWithFilterCallback()
250 return Zip({.src_dir = src_dir, in ZipWithFilterCallback()
255 bool Zip(const base::FilePath& src_dir, in Zip() argument
258 return Zip({.src_dir in Zip()
264 ZipFiles(const base::FilePath& src_dir, Paths src_relative_paths, int dest_fd) ZipFiles() argument
[all...]
H A Dzip_unittest.cc329 base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input"); in TestTimeStamp() local
332 base::FilePath src_file = src_dir.AppendASCII("test.txt"); in TestTimeStamp()
335 EXPECT_TRUE(base::CreateDirectory(src_dir)); in TestTimeStamp()
354 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp()
1011 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); in TEST_F() local
1017 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F()
1022 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); in TEST_F() local
1028 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/false)); in TEST_F()
1033 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); in TEST_F() local
1040 base::CopyDirectory(src_dir, src_dir_russia in TEST_F()
1071 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); TEST_F() local
1148 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); TEST_F() local
1185 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); TEST_F() local
1224 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); TEST_F() local
1289 const base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input"); TEST_F() local
1319 const base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input"); TEST_F() local
1372 const base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input"); global() local
[all...]
H A Dzip.h92 base::FilePath src_dir; member
109 // the ZIP file. If this is empty, the whole contents of |src_dir| are
112 // These paths must be relative to |src_dir| and will be used as the file
113 // names in the created ZIP file. All files must be under |src_dir| in the
146 // Zip the contents of src_dir into dest_file. src_path must be a directory.
148 // of src_dir will be at the root level of the created zip. For each file in
149 // src_dir, include it only if the callback |filter_cb| returns true. Otherwise
151 bool ZipWithFilterCallback(const base::FilePath& src_dir,
158 bool Zip(const base::FilePath& src_dir,
165 // in |src_relative_paths| are relative to the |src_dir| an
[all...]
/third_party/python/Lib/test/
H A Dtest_shutil.py472 src_dir = self.mkdtemp()
474 self.addCleanup(shutil.rmtree, src_dir)
476 write_file((src_dir, 'test.txt'), '123')
477 os.mkdir(os.path.join(src_dir, 'test_dir'))
478 write_file((src_dir, 'test_dir', 'test.txt'), '456')
480 shutil.copytree(src_dir, dst_dir)
491 src_dir = self.mkdtemp()
493 self.addCleanup(shutil.rmtree, src_dir)
496 write_file((src_dir, 'nonexisting.txt'), '123')
497 os.mkdir(os.path.join(src_dir, 'existing_di
[all...]
/third_party/musl/scripts/
H A Dsearch_source_files.py41 for src_dir in SRC_DIRS:
42 src_path = path + "/" + src_dir
46 if os.path.isdir(cur_path) and src_dir == "src":
56 for src_dir in SRC_DIRS:
57 if src_dir == "src":
58 src_list = os.listdir(path + "/" + src_dir)
60 cur_path = os.path.join(path + "/" + src_dir, src)
62 elif os.path.isdir(path + "/" + src_dir + "/" + arch):
63 src_path = path + "/" + src_dir + "/" + arch
/third_party/gn/infra/recipes/
H A Dgn.py99 src_dir = api.path['start_dir'].join('gn')
104 api.step('init', ['git', 'init', src_dir])
106 with api.context(cwd=src_dir):
254 env=env, cwd=src_dir):
262 ['python3', '-u', src_dir.join('build', 'gen.py')] + args)
267 src_dir.join('out')])
270 api.step('test', [src_dir.join('out', 'gn_unittests')])
280 api.cas.archive('upload binary to CAS', src_dir.join('out'),
281 src_dir.join('out', gn))
288 package_root=src_dir
[all...]
/third_party/ninja/misc/
H A Dwrite_fake_manifests.py53 def __init__(self, src_dir):
56 self.src_dir = src_dir
80 return [(os.path.join(self.src_dir, path, s + '.cc'),
108 def write_target_ninja(ninja, target, src_dir):
117 ninja.variable('includes', '-I' + src_dir)
226 def random_targets(num_targets, src_dir):
227 gen = GenRandom(src_dir)
256 src_dir = args.sources if do_write_sources else "src"
258 targets = random_targets(args.targets, src_dir)
[all...]
/third_party/icu/icu4c/source/python/icutools/databuilder/
H A D__main__.py71 "--src_dir",
244 def __init__(self, src_dir):
245 self.src_dir = src_dir
248 absolute_paths = pyglob.glob(os.path.join(self.src_dir, pattern))
250 relative_paths = [v[len(self.src_dir)+1:] for v in sorted(absolute_paths)]
260 with pyio.open(os.path.join(self.src_dir, filename), "r", encoding="utf-8-sig") as f:
284 "SRC_DIR": args.src_dir,
285 "IN_DIR": args.src_dir,
295 # Automatically load BUILDRULES from the src_dir
[all...]
/third_party/skia/third_party/externals/icu/source/python/icutools/databuilder/
H A D__main__.py71 "--src_dir",
244 def __init__(self, src_dir):
245 self.src_dir = src_dir
248 absolute_paths = pyglob.glob(os.path.join(self.src_dir, pattern))
250 relative_paths = [v[len(self.src_dir)+1:] for v in sorted(absolute_paths)]
260 with pyio.open(os.path.join(self.src_dir, filename), "r", encoding="utf-8-sig") as f:
284 "SRC_DIR": args.src_dir,
285 "IN_DIR": args.src_dir,
295 # Automatically load BUILDRULES from the src_dir
[all...]
/third_party/node/deps/v8/third_party/inspector_protocol/
H A Droll.py150 src_dir = upstream
152 print('Rolling %s into %s ...' % (src_dir, dest_dir))
153 src_files = set(FindFilesToSyncIn(src_dir))
159 os.path.join(src_dir, f), os.path.join(dest_dir, f)))]
171 contents = open(os.path.join(src_dir, f)).read()
180 shutil.copymode(os.path.join(src_dir, f), os.path.join(dest_dir, f))
/third_party/node/tools/inspector_protocol/
H A Droll.py118 src_dir = upstream
120 print('Rolling %s into %s ...' % (src_dir, dest_dir))
121 src_files = set(FindFilesToSyncIn(src_dir))
127 os.path.join(src_dir, f), os.path.join(dest_dir, f)))]
139 contents = open(os.path.join(src_dir, f)).read()
147 shutil.copymode(os.path.join(src_dir, f), os.path.join(dest_dir, f))
/third_party/python/Lib/distutils/command/
H A Dbuild_py.py98 """Generate list of '(package,src_dir,build_dir,filenames)' tuples"""
104 src_dir = self.get_package_dir(package)
111 if src_dir:
112 plen = len(src_dir)+1
116 file[plen:] for file in self.find_data_files(package, src_dir)
118 data.append((package, src_dir, build_dir, filenames))
121 def find_data_files(self, package, src_dir):
122 """Return filenames for package's data files in 'src_dir'"""
128 filelist = glob.glob(os.path.join(glob.escape(src_dir), convert_path(pattern)))
137 for package, src_dir, build_di
[all...]
/third_party/skia/tools/skqp/
H A Dmake_skqp_model.cpp71 const char* src_dir = argv[1]; in main() local
74 SkOSFile::Iter iter(src_dir); in main()
77 name.prependf("%s/", src_dir); in main()
90 SkDebugf("Failure: '%s' '%s'\n", src_dir, dst_dir); in main()
/third_party/skia/infra/bots/recipe_modules/docker/
H A Dapi.py30 # Unless match_directory_structure ==True, src_dir must be
32 def run(self, name, docker_image, src_dir, out_dir, script, args=None, docker_args=None, copies=None, recursive_read=None, attempts=1, match_directory_structure=False):
54 # chmod the src_dir, but not recursively; Swarming writes some files which
56 self._chmod(src_dir, '755')
81 (src_dir, src_dir if match_directory_structure else MOUNT_SRC),
88 # This only works when src_dir == self.m.path['start_dir'] but that's our
/third_party/typescript/tests/ts_extra_tests/
H A Drun_ts_case.py108 def copy_directory(src_dir, target_dir):
111 shutil.copytree(src_dir, target_dir)
115 src_dir = os.path.join(work_dir, dir_name)
117 copy_directory(src_dir, target_dir)
/third_party/skia/infra/bots/assets/win_toolchain/
H A Dcreate.py19 pass the unzipped directory as the src_dir to this script.
75 # Obtain src_dir from create_and_upload via an environment variable, since
77 src_dir = getenv(ENV_VAR)
80 shutil.copytree(src_dir, target_dir, ignore=filter_toolchain_files)
/third_party/flatbuffers/
H A Dinstall.py38 def move_dir(src_dir, dst_dir):
39 shutil.copytree(src_dir, dst_dir)
/third_party/python/Tools/ssl/
H A Dmultissltests.py171 self.src_dir = os.path.join(args.base_directory, 'src')
173 self.src_dir, self.src_template.format(version))
176 self.src_dir, self.build_template.format(version))
248 src_dir = os.path.dirname(self.src_file)
249 if not os.path.isdir(src_dir):
250 os.makedirs(src_dir)

Completed in 14 milliseconds

12