Searched refs:src_file (Results 1 – 5 of 5) sorted by relevance
/build/ohos/ |
D | copy_files.py | 27 for src_file in source_files: 28 if not os.path.exists(src_file): 29 raise Exception("src file '{}' doesn't exist.".format(src_file)) 30 if not os.path.isfile(src_file): 32 file_name = os.path.basename(src_file) 36 shutil.copy2(src_file, output_file)
|
/build/ohos/testfwk/ |
D | test_py_file_copy.py | 29 for src_file in source_files: 30 if not os.path.exists(src_file): 31 raise Exception("src file '{}' doesn't exist.".format(src_file)) 32 relative_path = os.path.relpath(src_file, target_base_dir) 37 shutil.copy2(src_file, output_file)
|
D | testcase_resource_copy.py | 175 src_file = resource_info.get('src') 176 if not os.path.exists(src_file): 178 src_file)) 182 if os.path.isdir(src_file): 183 result_files = copy_dir(src_file, dest_file) 188 shutil.copy2(src_file, dest_file) 189 if src_file: 190 result_dest_list.append(src_file)
|
/build/lite/testfwk/ |
D | lite_testcase_resource_copy.py | 170 src_file = resource_info.get('src') 171 if not os.path.exists(src_file): 173 src_file)) 177 if os.path.isdir(src_file): 178 copy_dir(src_file, dest_file) 182 shutil.copy2(src_file, dest_file)
|
/build/ |
D | prebuilts_download.py | 64 def _uncompress(args, src_file, code_dir, unzip_dir, unzip_filename, mark_file_path): argument 66 if src_file[-3:] == 'zip': 67 cmd = 'unzip -o {} -d {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path) 68 elif src_file[-6:] == 'tar.gz': 69 cmd = 'tar -xvzf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path) 71 cmd = 'tar -xvf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
|