Skip to content

a simple command-line utility that implements hardlinks on Mac OsX

Notifications You must be signed in to change notification settings

wangtai/hardlink

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

hardlink

a simple command-line utility that implements directory hardlinks on Mac OsX

to link: hardlink source destination
to unlink: hardlink -u destination

Motivation

I was trying to patch a third-party library and make the files available in our code directory without having to copy the files every time I patch it.

I got the idea from some stackoverflow questions.. and decided to create a lib out if it that everybody can use

Requirements

  • You need xCode command line tools installed to use make command

Installation

  • git clone git://github.com/selkhateeb/hardlink.git
  • cd hardlink
  • make
  • sudo make install

Note: in case you get error directory /usr/local/bin does not exist, just copy hardlink app into /usr/bin instead

Usage

To create a hard link:

  • hardlink source destination

To remove the link:

  • hardlink -u destination

Limitations

Hardlink can not be created under the same directory root. If you try to hardlink source directory to target directory under the same root you will get an error.

operation not permitted

to avoid that you should create additonal directory level

- /directory_root/
   |-  /source_directory
   |-  /parent_directory/
         |- target_directory

About

a simple command-line utility that implements hardlinks on Mac OsX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published