Lines Matching refs:path
54 def _FindBindMountConflict(self, path): argument
67 if path == bind_destination:
70 elif path.startswith(bind_destination + os.sep):
71 relative_path = os.path.relpath(path, bind_destination)
72 path_in_source = os.path.join(bind_mount.source_dir, relative_path)
73 if os.path.exists(path_in_source) and os.listdir(path_in_source):
113 current_dir_relative = os.path.relpath(current_dir_origin, overlay_dir)
114 current_dir_destination = os.path.normpath(
115 os.path.join(destination_dir, current_dir_relative))
123 os.path.relpath(current_dir_origin, source_dir) in allowed_projects):
132 current_dir_ancestor = os.path.dirname(current_dir_ancestor)
145 current_dir_relative = os.path.relpath(current_dir_origin, overlay_dir)
146 current_dir_destination = os.path.normpath(
147 os.path.join(destination_dir, current_dir_relative))
156 subdir_origin = os.path.join(current_dir_origin, subdir)
157 if os.path.islink(subdir_origin):
159 subdir_destination = os.path.join(intermediate_work_dir,
165 file_origin = os.path.join(current_dir_origin, file)
166 file_destination = os.path.join(current_dir_destination, file)
195 main_out_dir = os.path.join(source_dir, 'out')
196 if not os.path.exists(main_out_dir):
201 out_origin = os.path.join(source_dir, subdir)
204 out_destination = os.path.join(destination_dir, subdir)
208 repo_origin = os.path.join(source_dir, '.repo')
209 if os.path.exists(repo_origin):
210 repo_destination = os.path.normpath(
211 os.path.join(destination_dir, '.repo'))
251 skip_subdirs.add(os.path.join(source_dir, 'overlays'))
292 dest_dir = os.path.dirname(dest_path)
293 if not os.path.exists(dest_dir):
323 rw_allowlist = {os.path.join(source_dir, p) for p in build_config.allow_readwrite}
325 def AllowReadWrite(path): argument
326 return build_config.allow_readwrite_all or path in rw_allowlist
392 overlay_dir = os.path.join(source_dir, 'overlays', overlay_dir)
401 path_from = os.path.join(source_dir, path_relative_from)
402 if os.path.isfile(path_from) or os.path.isdir(path_from):
403 path_to = os.path.join(destination_dir, path_relative_to)