From: Wejn Date: 2003-11-18T00:41:49+09:00 Subject: Re: Fileutils.cp bug? Hi, > # What about comparation of [dev,inode] ? > > Good point, Michal. I thik I need some post-RubyConf rest :) > > How about (File.expand_path("src") == File.expand_path("dest"))? wow ... even better :-) I think it will avoid possible problems on Win32 (I'm not sure how stat() behaves there regarding to dev and inode#). M. -- # Michal Safranek, email: a=(("a".."z").to_a+["@","."]);p(("%b"%[0x645bbb83a6a496] ).scan(/...../).map{|x|a[Integer("0b"+x)]}.join.reverse)