We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c77707f commit f1e1690Copy full SHA for f1e1690
lib/pavilion/utils.py
@@ -196,14 +196,17 @@ def path_is_external(path: Path):
196
197
198
def symlinktree(source_directory, destination_directory):
199
+ """Recursively create symlinks from test source directory to builds directory in working_dir"""
200
+
201
for root, dirs, files in os.walk(source_directory):
202
for file in files:
203
src_path = os.path.join(root, file)
204
rel_path = os.path.relpath(src_path, source_directory)
205
dst_path = os.path.join(destination_directory, rel_path)
206
- # Create
207
+ # Create parent dir if it doesn't already exist
208
os.makedirs(os.path.dirname(dst_path), exist_ok=True)
209
+ # Create the symlink
210
os.symlink(src_path, dst_path)
211
212
0 commit comments