osx - Automatically Switching Between Symbolic Links and Folders -


i have dropbox saved on external drive.

i'm trying figure out if @ least 1 of theses 2 things possible when not have external drive me:

can create kind of 'switch' when external drive disconnects, symbolic link automatically become folder can still store info in usual, , next time connect external drive become symbolic link again , upload files stored while drive disconnected?

or @ least have symbolic link point local folder when drive disconnected , point dropbox folder when drive connected while still having local folder auto-sync dropbox folder?

thanks!

it should doable write a(n eg. bash) script create , delete symlink , copying (probably via temp directory).
don't know how handle triggering, though.
brainstorming bit, can have symlink in dropbox folder points other folder; time in order preserve organizational structure @ home still have subset available elsewhere.
symlinks work within single filesystem. i'm not positive hardlinks.
external drive formatted hfs+? make difference too.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -