We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4726001 commit ece867aCopy full SHA for ece867a
1 file changed
os/win.ps1
@@ -1,3 +1,18 @@
1
+function create_hardlink {
2
+ param(
3
+ $target_path,
4
+ $source_path
5
+ )
6
+ if (Test-Path $target_path) {
7
+ Remove-Item $target_path -Force
8
+ }
9
+ New-Item -ItemType HardLink -Path $target_path -Value $source_path -Force | Out-Null
10
+ $item = Get-Item $target_path
11
+ if ($item.LinkType -ne "HardLink") {
12
+ Write-Error "File at $target_path is not a hardlink"
13
14
+}
15
+
16
# -- os_upgrade --
17
18
function win_os_upgrade() {
0 commit comments