Lines Matching refs:path
55 def _FindBindMountConflict(self, path): argument
71 if path == bind_destination:
74 elif path.startswith(bind_destination + os.sep):
75 relative_path = os.path.relpath(path, bind_destination)
76 path_in_source = os.path.join(bind_mount.source_dir, relative_path)
77 if os.path.exists(path_in_source) and os.listdir(path_in_source):
123 current_dir_relative = os.path.relpath(current_dir_origin, overlay_dir)
124 current_dir_destination = os.path.normpath(
125 os.path.join(destination_dir, current_dir_relative))
133 os.path.relpath(current_dir_origin, source_dir) in allowed_projects):
138 os.path.basename(overlay_dir), current_dir_relative))
143 current_dir_ancestor = os.path.dirname(current_dir_ancestor)
156 current_dir_relative = os.path.relpath(current_dir_origin, overlay_dir)
157 current_dir_destination = os.path.normpath(
158 os.path.join(destination_dir, current_dir_relative))
185 subdir_origin = os.path.join(current_dir_origin, subdir)
191 if os.path.islink(subdir_origin):
193 subdir_destination = os.path.join(intermediate_work_dir,
199 file_origin = os.path.join(current_dir_origin, file)
200 file_destination = os.path.join(current_dir_destination, file)
221 main_out_dir = os.path.join(source_dir, 'out')
222 if not os.path.exists(main_out_dir):
227 out_origin = os.path.join(source_dir, subdir)
230 out_destination = os.path.join(destination_dir, subdir)
234 repo_origin = os.path.join(source_dir, '.repo')
235 if os.path.exists(repo_origin):
236 repo_destination = os.path.normpath(
237 os.path.join(destination_dir, '.repo'))
283 skip_subdirs.add(os.path.join(source_dir, 'overlays'))
332 dest_dir = os.path.dirname(dest_path)
333 if not os.path.exists(dest_dir):
363 rw_allowlist = {os.path.join(source_dir, p) for p in build_config.allow_readwrite}
365 def AllowReadWrite(path): argument
366 return build_config.allow_readwrite_all or path in rw_allowlist
386 for path in build_config.allow_readwrite:
387 while path not in ["", "/"]:
390 contains_rw.add(os.path.join(source_dir, path))
391 path = os.path.dirname(path)
393 def ContainsReadWrite(path): argument
394 return build_config.allow_readwrite_all or path in contains_rw
429 def is_replacement_allowed_func(overlay_name, path): argument
431 if overlay_name == overlay.name and path in overlay.replacement_paths:
479 overlay_dir = os.path.join(source_dir, 'overlays', overlay.name)
489 path_from = os.path.join(source_dir, path_relative_from)
490 if os.path.isfile(path_from) or os.path.isdir(path_from):
491 path_to = os.path.join(destination_dir, path_relative_to)