symbolic-link-0.1.0.2: Symlink tools

Copyright(c) Fuzz Leonard 2019
LicenseBSD-3
Maintainerfuzz@kt-22.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

System.SymbolicLink

Description

SymbolicLink provides tools for working with symbolic links on POSIX systems.

The executable symlink changes to the user's home directory, reads in a sequence of source/target mappings from a YAML file in .symlinks and attempts to create them. If the target exists and is a symbolic link it will be removed and replaced, otherwise symlink will refuse to clobber it.

The function filePathExist works like fileExist from System.Posix.Files or doesPathExist from System.Directory but does not follow symlinks, thus making it suitable for working with unreferenced symlinks. Unreferenced symlinks are not necessarily "broken"; one should not have to handle exceptions to work with them.

Synopsis

Documentation

filePathExist :: FilePath -> IO Bool Source #

filePathExist works like fileExist except it doesn't follow symlinks.