From: EB Date: 2006-10-23T02:10:17+09:00 Subject: Re: about file format Li Chen wrote: > Hi guys, > > I just wonder what is the default file format which can recognized by > File.file?(). I have some files in a folder with this format: > > OTI-4.001 > OTI-4.002 <...> > > I use irb to check if this format can be seen by Ruby and here is the > result: > > irb(main):007:0> File.file?('OTI-4.001') > => false Li, Try again, I just did the following on my Linux box and it worked fine: $ touch OTI-4.001 $ ls OTI-4.001 OTI-4.001 $ irb irb(main):001:0> File.file?('OTI-4.001') => true irb(main):002:0> EB