smartlink

package
v0.0.0-...-b6fc690 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Link(src, dest string) error

Link creates a link from src to target. MS decided to support Symlinks but only if you opt into developer mode (go figure), which we cannot reasonably force on our users. So on Windows we will instead create dirs and hardlinks.

func LinkContents

func LinkContents(src, dest string) error

LinkContents will link the contents of src to desc

func UnlinkContents

func UnlinkContents(src, dest string) error

UnlinkContents will unlink the contents of src to dest if the links exist WARNING: on windows smartlinks are hard links, and relating hard links back to their source is non-trivial, so instead we just delete the target path. If the user modified the target in any way their changes will be lost.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL