Skip to content

Instantly share code, notes, and snippets.

@jcanfield
Created June 3, 2012 19:11
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcanfield/2864679 to your computer and use it in GitHub Desktop.
Save jcanfield/2864679 to your computer and use it in GitHub Desktop.
Create Hardlinks to Sync Folders with Google Drive
OUTPUT=hardlink
C_FILES=hardlink.c
all:
gcc ${C_FILES} -o ${OUTPUT}
clean:
rm ${OUTPUT}
install:
cp ${OUTPUT} /usr/local/bin/
@joshbode
Copy link

Nice! As an alternative, you can also install the GNU coreutils and use gln -d:

$ brew install coreutils
$ gln -d ~/foo/ ~/Google\ Drive/foo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment