Spec-Zone.ru › Nim

std/private/ossymlinks

Source Edit

Imports

oserrors, oscommon, winlean, times

Procs

proc createSymlink(src, dest: string) {....raises: [OSError],
                                        tags: [ReadDirEffect], forbids: [].}
Create a symbolic link at dest which points to the item specified by src. 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:

  • os: createHardlink proc
  • expandSymlink proc
Source Edit
proc expandSymlink(symlinkPath: string): string {....raises: [], tags: [],
    forbids: [].}

Returns a string representing the path to which the symbolic link points.

On Windows this is a noop, symlinkPath is simply returned.

See also:

  • createSymlink proc
Source Edit

© 2006–2024 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/ossymlinks.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API