Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Sep 2010 13:35:06 -0700
From:      merlyn@stonehenge.com (Randal L. Schwartz)
To:        Aryeh Friedman <aryeh.friedman@gmail.com>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: how to recursively symlink every file in a dir
Message-ID:  <86bp86mz9h.fsf@red.stonehenge.com>
In-Reply-To: <AANLkTimR9QehTjUrm%2B0CqRVAx=QHkgcfpygrJJfkhbmp@mail.gmail.com> (Aryeh Friedman's message of "Thu, 9 Sep 2010 13:24:50 -0400")
References:  <AANLkTimR9QehTjUrm%2B0CqRVAx=QHkgcfpygrJJfkhbmp@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Aryeh" == Aryeh Friedman <aryeh.friedman@gmail.com> writes:

Aryeh> I want to make it so every file is a seperate symlink in dir2 if and
Aryeh> only if it is a regular file (not a dir) in dir1... the reason is if
Aryeh> the file is unchanged then use symlink but I can rm the symlink and
Aryeh> replace it with a non-symlink:

Are you committed to symlinks?

I think null-mounts would do what you're trying to do... as in, as long
as you're reading, you're reading from the old stuff, but if you ever
write something new, all the right bits get created in the new dir.

But I'm new to null-mounts, so I could be wrong.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>;
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86bp86mz9h.fsf>