ossymlinks
nimony/lib/std/private/ossymlinks.nim
proc createSymlink(src: string; dest: string)Create a symbolic link at
destwhich points to the item specified bysrc. On most operating systems, will fail if a link already exists... warning:: Some OS's (such as Microsoft Windows) restrict the creation of symlinks to root users (administrators) or users with developer mode enabled.
See also:
createHardlink proc_expandSymlink proc_
proc createHardlink(src: string; dest: string)Create a hard link at
destwhich points to the item specified bysrc... warning:: Some OS's restrict the creation of hard links to root users (administrators).
See also:
createSymlink proc_
proc expandSymlink(symlinkPath: string): stringReturns the stored target of the symbolic link
symlinkPath.This expands exactly one level of indirection, like POSIX
readlink. If the target is itself a symbolic link, it is returned as-is rather than being expanded further.On Windows, this supports symbolic links and junctions by reading the reparse point payload directly; the NT
\??\prefix of absolute targets is stripped. Unsupported reparse tags raiseBadOperation.On Nintendo Switch this is currently a noop:
symlinkPathis simply returned, without checking whether it is actually a symbolic link.See also:
createSymlink proc_