Windows: fix error with can_symlink check (#42753)

This commit is contained in:
John W. Parent 2024-02-21 13:18:25 -05:00 committed by GitHub
parent e96640d2b9
commit 7d728822f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -189,6 +189,7 @@ def _windows_can_symlink() -> bool:
import llnl.util.filesystem as fs
fs.touchp(fpath)
fs.mkdirp(dpath)
try:
os.symlink(dpath, dlink)