Hi all, Dave Burt mentioned the possibility of adding symlinks to the Dir class. http://www.sysinternals.com/ntw2k/source/misc.shtml#junction There is also Autrijus Tang''s symlink Perl module at http://search.cpan.org/~autrijus/Win32-Symlink-0.04/ Looks easy enough, but it only seems to work for directories, not regular files. Should we add this to the Directory class, or simply define it for the File class with a big warning sticker? The former seems to make more sense, but the latter helps keep things portable and familiar. What''s the consensus? Regards, Dan __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Daniel Berger wrote:> Hi all, > > Dave Burt mentioned the possibility of adding symlinks > to the Dir class. > > http://www.sysinternals.com/ntw2k/source/misc.shtml#junction > > > There is also Autrijus Tang''s symlink Perl module at > http://search.cpan.org/~autrijus/Win32-Symlink-0.04/ > > Looks easy enough, but it only seems to work for > directories, not regular files. Should we add this to > the Directory class, or simply define it for the File > class with a big warning sticker? The former seems to > make more sense, but the latter helps keep things > portable and familiar. > > What''s the consensus?My vote would be to put it on the File class with a sticker warning. Zach
Hi Dan, Perhaps we should use hardlinks to get a similar effect for regular files: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/fsutil_hardlink.mspx Wayne On Sat, 26 Feb 2005 11:23:00 -0800 (PST), Daniel Berger <djberg96@yahoo.com> wrote:> Hi all, > > Dave Burt mentioned the possibility of adding symlinks > to the Dir class. > > http://www.sysinternals.com/ntw2k/source/misc.shtml#junction > > There is also Autrijus Tang''s symlink Perl module at > http://search.cpan.org/~autrijus/Win32-Symlink-0.04/ > > Looks easy enough, but it only seems to work for > directories, not regular files. Should we add this to > the Directory class, or simply define it for the File > class with a big warning sticker? The former seems to > make more sense, but the latter helps keep things > portable and familiar. > > What''s the consensus? > > Regards, > > Dan > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > win32utils-devel mailing list > win32utils-devel@rubyforge.org > http://rubyforge.org/mailman/listinfo/win32utils-devel >
> -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > Wayne Vucenic > Sent: Sunday, February 27, 2005 3:09 PM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] Symlinks for Windows > > > Hi Dan, > > Perhaps we should use hardlinks to get a similar effect for > regular files:Hi Wayne, I need to double check the source, but I think this is already implemented in core Ruby using the File.link method. Regards, Dan
Daniel Berger wrote:> Hi all, > > Dave Burt mentioned the possibility of adding symlinks > to the Dir class. > > http://www.sysinternals.com/ntw2k/source/misc.shtml#junction > > > There is also Autrijus Tang''s symlink Perl module at > http://search.cpan.org/~autrijus/Win32-Symlink-0.04/ > > Looks easy enough, but it only seems to work for > directories, not regular files. Should we add this to > the Directory class, or simply define it for the File > class with a big warning sticker? The former seems to > make more sense, but the latter helps keep things > portable and familiar. > > What''s the consensus? >Did this ever happen. I can''t find it in any of the win32 packages.... am i missing something? Thanks, Zach
On 4/30/05, Zach Dennis <zdennis@mktec.com> wrote:> Daniel Berger wrote: > > Hi all, > > > > Dave Burt mentioned the possibility of adding symlinks > > to the Dir class. > > > > http://www.sysinternals.com/ntw2k/source/misc.shtml#junction > > > > > > There is also Autrijus Tang''s symlink Perl module at > > http://search.cpan.org/~autrijus/Win32-Symlink-0.04/ > > > > Looks easy enough, but it only seems to work for > > directories, not regular files. Should we add this to > > the Directory class, or simply define it for the File > > class with a big warning sticker? The former seems to > > make more sense, but the latter helps keep things > > portable and familiar. > > > > What''s the consensus? > > > > Did this ever happen. I can''t find it in any of the win32 packages.... > am i missing something? Thanks, > > ZachNope, hasn''t happened yet. I''m still mulling it over. I noticed that some Perl folks got confused by Autrijus'' module with regards to the file versus directory issue, so now I''m leaning towards adding this to win32-dir as Dir.junction and Dir#junction? instead of File.symlink and File#symlink? However, if anyone feels strongly one way or the other, I''m listening. Regards, Dan
Daniel Berger wrote:> > Nope, hasn''t happened yet. I''m still mulling it over. I noticed that > some Perl folks got confused by Autrijus'' module with regards to the > file versus directory issue, so now I''m leaning towards adding this to > win32-dir as Dir.junction and Dir#junction? instead of File.symlink > and File#symlink? > > However, if anyone feels strongly one way or the other, I''m listening. >I can see where confusion may play a part. I will second ''junction''. Any idea on the time, effort or level of difficulty on putting this in ruby? I have already found a need for this feature! Thanks, Zach
Zach Dennis wrote:> I can see where confusion may play a part. I will second ''junction''. Any > idea on the time, effort or level of difficulty on putting this in ruby?^^^^^^^^^^^^^^^^^^^^^^^^^ I mean putting this in a ruby extension. =) Zach