Method: Bio::FlatFileIndex::FileID#check
- Defined in:
- lib/bio/io/flatfile/index.rb
#check ⇒ Object
502 503 504 505 506 507 508 509 510 511 512 513 514 |
# File 'lib/bio/io/flatfile/index.rb', line 502 def check begin fsize = File.size(@filename) r = ( fsize == @filesize) rescue Errno::ENOENT fsize = -1 r = nil end DEBUG.print "FileID: File.size(#{@filename.inspect}) = ", fsize, (r ? ' == ' : ' != ') , @filesize, (r ? '' : ' bad!'), "\n" r end |