trySymlink

Posix-only. If 'original' exists, then symlink. Otherwise, do nothing and return false.

Supports Path and command echoing.

  1. bool trySymlink(T1 original, T2 link)
    version(docs_scriptlike_d)
    bool
    trySymlink
    (
    T1
    T2
    )
    (,
    T2 link
    )
    if (
    (
    is(T1 == string) ||
    is(T1 == Path)
    )
    &&
    (
    is(T2 == string) ||
    is(T2 == Path)
    )
    )
  2. bool trySymlink(T1 original, T2 link)

Return Value

Type: bool

Success?

Meta