From: Massimiliano Mirra Date: 2002-03-13T06:52:24+09:00 Subject: Re: Some potential RCRs On Wed, Mar 13, 2002 at 03:58:01AM +0900, Yukihiro Matsumoto wrote: > |Dir methods that produce directory entries should never produce "." and "..". > |I see no use in producing "." and "..", and it is a nuisance having to explicitly filter them out (usually > |after forgetting to do it and getting a program error!) Also, seems a tad non-portable. > > I'd like to hear others' opinion about this issue too. One of the reason I use e.g. File.cp(source, dest) rather than `cp #{source} #{dest}`, is that people willing to port the code to a platform where there is no `cp' in the path won't spend hours searching and replacing. I don't know if `.' and `..' in listings produced by Dir actually cause portability problems. If so, I'm for leaving them behind. Massimiliano