Files
skillshare/internal
Willie eb359a7626 fix(utils): create junctions through the reparse-point API
Quoting the paths for `cmd /c mklink` stops `&` from splitting the
command, but cmd.exe still expands `%VAR%` inside quotes, so a path with
a token such as `%TEMP%` pointed the junction somewhere else or failed.

Create the directory and set its mount-point reparse data with
FSCTL_SET_REPARSE_POINT instead. No shell parses the paths, which also
removes the need for quoting. Like mklink /J it refuses an existing
link path, and it removes the directory it made if setting the reparse
data fails.

Refs #420
2026-10-06 00:52:54 +08:00
..