[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Fileutils.cp bug?

Chad Fowler

11/17/2003 3:12:00 PM

1 Answer

Wejn

11/17/2003 3:42:00 PM

0

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)