Murphy.SymbolicLink 1.0.0

Install-Package Murphy.SymbolicLink -Version 1.0.0
dotnet add package Murphy.SymbolicLink --version 1.0.0
<PackageReference Include="Murphy.SymbolicLink" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Murphy.SymbolicLink --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Murphy.SymbolicLink, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Murphy.SymbolicLink as a Cake Addin
#addin nuget:?package=Murphy.SymbolicLink&version=1.0.0

// Install Murphy.SymbolicLink as a Cake Tool
#tool nuget:?package=Murphy.SymbolicLink&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SymbolicLink is a small utility library that provides cross-platform support for symbolic links.

Installation

You can install SymbolicLink via NuGet.

To build SymbolicLink from source you will need an F# 4.1 compiler (or newer) and a .NET development environment. The .sln and .fsproj files in the source directories should be understood by .NET Core command line tools, MSBuild or IDEs such as VSCode or VisualStudio.

Usage

SymbolicLink is a library. The Murphy.SymbolicLink namespace contains a SymbolicLink module and several extension methods for classes in the System.IO namespace.

Here are some usage examples for the library:

#r "Murphy.SymbolicLink"
open System
open Murphy.SymbolicLink

// Create a new symbolic link "a" that points to "b":
SymbolicLink.create "b" "a"
IO.File.CreateSymbolicLink("a", "b")

// Resolve all links in the path "a":
SymbolicLink.resolve "a" |> printfn "a -> %s"
IO.Path.GetResolvedPath("a") |> printfn "a -> %s"

// Read the target of the symbolic link "a":
SymbolicLink.read "a"
|> function
  | Ok target -> printfn "a -> %s" target
  | Error err -> eprintfn "%O" err

try
  IO.File.ReadSymbolicLink("a")
  |> printfn "a -> %s"
with
| err -> eprintfn "%O" err

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Murphy.SymbolicLink:

Package Downloads
Kenshi.ModTool.Core

A Helper for many tools that i'm working on. check it on: https://github.com/millerscout/Kenshi-Mod-Manager

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 1,396 10/23/2018