On 08/10/2010 11:06 PM, Jarry wrote:
Hi,
I am facing this problem: I have subdirectory, let's say
"/some/dir". I would like to create some kind of "dynamic"
and "preliminary" link, so that any future subdirectories,
created later in /some will in fact be links, pointing to
/some/dir.

So if later any user does:
cd /some
mkdir whatever

There should not be subdirectory /some/whatever, but actually link:
/some/whatever -> /some/dir

Is it possible?

Jarry

Hello,

this is probably not an answer for your question but... You can achieve this in different way - write small script and after this use some program (for example cron) which will execute that script every few seconds/minutes. The script may remove every empty directory located in /some (excluding /some/dir) and create a link to it.

Regards, Paul.


Reply via email to