Lines Matching refs:os

26 import os
69 elif path.startswith(bind_destination + os.sep):
70 relative_path = os.path.relpath(path, bind_destination)
71 path_in_source = os.path.join(bind_mount.source_dir, relative_path)
72 if os.path.exists(path_in_source) and os.listdir(path_in_source):
103 for current_dir_origin, subdirs, files in os.walk(overlay_dir):
109 current_dir_relative = os.path.relpath(current_dir_origin, overlay_dir)
110 current_dir_destination = os.path.normpath(
111 os.path.join(destination_dir, current_dir_relative))
126 current_dir_ancestor = os.path.dirname(current_dir_ancestor)
129 for current_dir_origin, subdirs, files in os.walk(overlay_dir):
139 current_dir_relative = os.path.relpath(current_dir_origin, overlay_dir)
140 current_dir_destination = os.path.normpath(
141 os.path.join(destination_dir, current_dir_relative))
150 subdir_origin = os.path.join(current_dir_origin, subdir)
151 if os.path.islink(subdir_origin):
153 subdir_destination = os.path.join(intermediate_work_dir,
159 file_origin = os.path.join(current_dir_origin, file)
160 file_destination = os.path.join(current_dir_destination, file)
189 main_out_dir = os.path.join(source_dir, 'out')
190 if not os.path.exists(main_out_dir):
191 os.makedirs(main_out_dir)
193 for subdir in os.listdir(source_dir):
195 out_origin = os.path.join(source_dir, subdir)
198 out_destination = os.path.join(destination_dir, subdir)
202 repo_origin = os.path.join(source_dir, '.repo')
203 if os.path.exists(repo_origin):
204 repo_destination = os.path.normpath(
205 os.path.join(destination_dir, '.repo'))
243 skip_subdirs.add(os.path.join(source_dir, 'overlays'))
283 dest_dir = os.path.dirname(dest_path)
284 if not os.path.exists(dest_dir):
285 os.makedirs(dest_dir)
336 rw_whitelist = {os.path.join(source_dir, p) for p in rw_whitelist}
341 overlay_dir = os.path.join(source_dir, 'overlays', overlay_dir)
351 path_from = os.path.join(source_dir, path_relative_from)
352 if os.path.isfile(path_from) or os.path.isdir(path_from):
353 path_to = os.path.join(destination_dir, path_relative_to)
381 if os.path.exists(config_file):