We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8535338 commit 096e583Copy full SHA for 096e583
1 file changed
src/caelestia/utils/dots/manifest.py
@@ -57,7 +57,10 @@ def expanded_dests(self) -> list[Path]:
57
glob_idx = max(i for i, part in enumerate(parts) if _GLOB_MAGIC.search(part))
58
pattern = str(Path(*parts[: glob_idx + 1]))
59
tail = parts[glob_idx + 1 :]
60
- return [Path(match, *tail) for match in sorted(glob.glob(pattern))]
+ matches = sorted(glob.glob(pattern))
61
+ if tail: # Only match dirs if a tail exists
62
+ matches = [match for match in matches if Path(match).is_dir()]
63
+ return [Path(match, *tail) for match in matches]
64
65
66
@dataclass(frozen=True)
0 commit comments