Skip to content

Commit ee9ca9c

Browse files
committed
resolve directory symlinks
Signed-off-by: Zen <[email protected]>
1 parent 63c2565 commit ee9ca9c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ugrd/generator_helpers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ def _mkdir(self, path: Path, resolve_build=True) -> None:
5151
else:
5252
path_dir = path
5353

54-
if path_dir.is_symlink():
55-
return self.logger.debug("Skipping symlink directory: %s" % path_dir)
54+
while path_dir.is_symlink():
55+
path_dir = self._get_build_path(path_dir.resolve())
56+
self.logger.debug("[%s] Resolved directory symlink: %s" % (path, path_dir))
5657

5758
if not path_dir.parent.is_dir():
5859
self.logger.debug("Parent directory does not exist: %s" % path_dir.parent)

0 commit comments

Comments
 (0)