0.0.6 • Published 7 years ago

hardlink-manager v0.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Hardlink manager

Utility for managing hardlinks on macOS

Purpose

hardlink is a useful tool for creating directory hardlinks. However, it can be difficult to remember where all the hardlinks exist for a certain directory, if any. Also, there is a risk of removing a hardlinked directory with rm -rf and all other linked directories will disappear at once :fire:.

hardlink-manager is a wrapper that stores all hardlink locations in a file called .hardlinks at the root of the linked directory. When no more hardlinks exist, the file is removed.

This way, it's easy to know if/when a certain directory is hardlinked, and to what locations. The file .hardlinks should be added to .gitignore.

Requirement

hardlink should be installed and available as command hln

brew install hardlink-osx

Install

npm install hardlink-manager -g

Usage

Create hardlink

hlnm [source] [destination]

If destination is not specified, the original folder name will be used.


Remove hardlink

hlnm -u [destination]

List all hardlinks under current directory

hlnm -l
0.0.6

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago