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

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -