--nextPart15522499.OjBldmqOPl
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Quoth Feng Tien:
> Alex Gutteridge wrote:
> > On 13 Nov 2007, at 14:59, Feng Tien wrote:
> >=20
> >> I know the file.size works because I tried it with an static name and
> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > Add 'bad/' to each filename. E.g:
> >=20
> > Dir.foreach("bad") do |f|
> >    puts "#{f}: #{File.size('bad/'+f)}"
> > end
> >=20
> > Alex Gutteridge
> >=20
> > Bioinformatics Center
> > Kyoto University
>=20
> excellent, thanks it worked!

If you did:

  Dir["bad/*"].each do |f|
    ...
  end

in the first place, you wouldn't need to add the 'bad/'. I was originally=20
going to reply to suggest adding it, but then I though .foreach() would do=
=20
that for ya. Guess not.

Regards,
=2D-=20
Konrad Meyer <konrad / tylerc.org> http://konrad.sobertillnoon.com/

--nextPart15522499.OjBldmqOPl
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQBHOVOxCHB0oCiR2cwRAro0AKCgTCzXhiNYM5riZ+gjbhuAARlk/gCfR3px
Rv95+mkMlATwFZ+lLisoKSA=
=C0Pn
-----END PGP SIGNATURE-----

--nextPart15522499.OjBldmqOPl--