--nextPart1727284.zytX3azMdk
Content-Type: text/plain;
  charsettf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

quoth the Marc Heiler:
> well
> system("mv #{file}")
> is also possible ,)

I may be wrong, but I always had the impression that using a system commando 
do something available within the language is considered a kludge.

> include FileUtils isnt needed so that should reduce your
> LOC by -1

When I comment the line out I get:
undefined method `cp' for main:Object (NoMethodError)

> Doesnt FileUtils have
> mv(src, dest, options)
> ?

Yes, it does. But the thing is that if you are moving the file across 
partitions it will only copy and not delete the original file. I will not 
know if we are moving cross-partition, so I have to use cp and rm...

> Anyway, why not this?
>
> http://www.ruby-doc.org/core/classes/FileUtils.html#M002613

From the link: "If file and dest exist on the different disk partition, the 
file is copied instead."

-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972

--nextPart1727284.zytX3azMdk
Content-Type: application/pgp-signature

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

iD8DBQBE7SRMwPD5Cr/3CJgRAhcmAKCuDpaHhYN6BFQsVYDJn+USkqUz5gCgwKKp
XPgGaFeFfSzycMmKCkUc9bsL1
-----END PGP SIGNATURE-----

--nextPart1727284.zytX3azMdk--