From: Louis J Scoras Date: 2005-09-30T11:20:38+09:00 Subject: Re: [Q] creating hard links for Directories. ------=_Part_294_17499071.1128046835758 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > On Sep 29, 2005, at 9:21 PM, kraf001 wrote: > > > well as we all know the File class in ruby has the method link which > > creates a hard link between files. I want to create hard links between > > directories. so a link to directory would have the same content and > > any > > change to its content will effect the other linked directories... I > > tries > > using FileUtils class but it didn't work!.. any ideas? > > > > As pointed out, this is probably OS dependant, but under unix like operatin= g systems, you can't make a hard link to a directory. This is to prevent the directory structure from becoming cyclic. Are you sure that a symbolic (soft) link won't do for what you're trying to acomplish? If you make changes to directories under a link, it will make changes under the "real" directory. -- Lou ------=_Part_294_17499071.1128046835758--