Creating "smart" links

Hi,

Let's say my directories looks like this:


Code:
/storage/complete/

/storage/week1/foo1
/storage/week1/bar1

/storage/week2/foo2
/storage/week2/bar2

Can I somehow link everything in week1 and week2 etc. to complete? So it looks like this:

Code:
/storage/complete/foo1
/storage/complete/bar1
/storage/complete/foo2
/storage/complete/bar2

And when I delete week1, foo1 and bar1 gets deleted in complete too? Or do I have to make a script that cleans that up?

NOTE: foo1, bar1 etc. is also directories containing many files.

Thanks,
 
You can use hard or softlinks to populate the complete directory but you're going to have to script something for the delete action.
 
Okey, I had hoped there where some kind of "smart link" that recognized when the target had been deleted or something like that. ah well, better start scripting then :)
 
Back
Top