Hi Graham, In that case I''ll have to redefine File.delete and Dir.rmdir in the win32-file package and win32-dir packages, respectively. Please add a feature request on the project page so I don''t forget. I should have it done this weekend. Dan Foster, Graham wrote:> I want to create a long UNC based path.. Server and top level will exist, > but subdirectories won''t (FileUtils.mkdir_p fails with a unc). I''d like to > remove a none empty filetree from a UNC (FileUtils.rm fails with a unc). I''d > like to recursively copy a filetree to a destination (FileUtils.cp_r fails > with a UNC) > > All work with mapped drive letters... So I need to create / re-use a drive > mapping and then iterate through my 1.7Tb of data. > > I tried rio, and that doesn''t work with drive letters, let alone UNC''s :-) > Graham > > > -----Original Message----- > From: Berger, Daniel [mailto:Daniel.Berger at qwest.com] > Sent: 10 November 2005 14:52 > To: Foster, Graham > Subject: RE: Windows UNC''s > > > Hi Graham, > > The win32-file package handles UNC paths for those methods that I''ve > redefined, not all File methods. What method in particular are you > trying to use? > > Dan > > >>-----Original Message----- >>From: Foster, Graham [mailto:graham_foster at merck.com] >>Sent: Thursday, November 10, 2005 6:37 AM >>To: Berger, Daniel >>Subject: Windows UNC''s >> >> >>Hi Daniel >> >>As the "guru" on all things Windows & Ruby I hope you can >>answer a quick question. >> >>It seems that the Ruby FileUtils module doesn''t understand >>UNC''s, and only works with mapped drives. (Ruby >>out-of-the-box doesn''t seem to understand most things Windows >>in fact! - so much for cross platform) >> >>Which Ruby module(s) do I need to dynamically map drive >>letters please. (I couldn''t see it in the Win32/File module either) >> >>Thx >>Graham >> >> >> >> >>-------------------------------------------------------------- >>---------------- >>Notice: This e-mail message, together with any attachments, >>contains information of Merck & Co., Inc. (One Merck Drive, >>Whitehouse Station, New Jersey, USA 08889), and/or its >>affiliates (which may be known outside the United States as >>Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as >>Banyu) that may be confidential, proprietary copyrighted >>and/or legally privileged. It is intended solely for the use >>of the individual or entity named on this message. If you >>are not the intended recipient, and have received this >>message in error, please notify us immediately by reply >>e-mail and then delete it from your system. >>-------------------------------------------------------------- >>---------------- >> > > > > > ------------------------------------------------------------------------------ > Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. > ------------------------------------------------------------------------------