symbolic-link: Symlink tools

[ bsd3, library, system ] [ Propose Tags ]

Tools for working with symbolic links on POSIX systems.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.2, 0.1.1.1
Change log CHANGELOG.md
Dependencies base (>=4.12.0.0 && <4.13), directory (>=1.3.3.0 && <1.4), unix (>=2.7.2.2 && <2.8), yaml (>=0.11.1.0 && <0.12) [details]
License BSD-3-Clause
Author Fuzz Leonard
Maintainer fuzz@kt-22.com
Category System
Home page https://github.com/fuzz/symbolic-link
Source repo head: git clone git@github.com:fuzz/symbolic-link.git
this: git clone git@github.com:fuzz/symbolic-link.git(tag 0.1.0.2)
Uploaded by fuzz at 2019-08-01T22:29:08Z
Distributions
Executables symlink
Downloads 679 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-08-01 [all 1 reports]

Readme for symbolic-link-0.1.0.2

[back to package description]

SymbolicLink

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 System.Posix.Files.fileExist but does not follow the symlink, 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.