Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eliot-akira/hardlink-manager
Utility for managing hardlinks on macOS
https://github.com/eliot-akira/hardlink-manager
Last synced: about 1 month ago
JSON representation
Utility for managing hardlinks on macOS
- Host: GitHub
- URL: https://github.com/eliot-akira/hardlink-manager
- Owner: eliot-akira
- Created: 2017-02-07T18:01:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-02T22:17:50.000Z (about 7 years ago)
- Last Synced: 2024-09-16T13:34:04.298Z (about 2 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hardlink manager
Utility for managing hardlinks on macOS
## Purpose
[`hardlink`](https://github.com/selkhateeb/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`
```bash
brew install hardlink-osx
```## Install
```bash
npm install hardlink-manager -g
```## Usage
Create hardlink
```bash
hlnm [source] [destination]
```If destination is not specified, the original folder name will be used.
---
Remove hardlink
```bash
hlnm -u [destination]
```---
List all hardlinks under current directory
```bash
hlnm -l
```