I want to write a script that will copy a source directory tree into a new directory tree structure that will be ready to be burned to DVD. Something like DVD1, DVD2, DVD3, where each directory is limited to 4GB. A program like burned to the brim would be perfect except it windows based and I need something that is platform independent. I looked at the cpan modules and File::Copy::Recursive seemed like a good starting point but it doesn't support limits by directory size. Before writing something new I was wondering if anyone knew of something available or a better starting module.
Thank you in advance!
I love perlmonks, there's always something new to learn.
In addition to marto's excellent pointers, you might want to have a look at my module, Algorithm::BinPack. I wrote the module with exactly this kind of problem in mind. You'll still have to do a bit of work, but the hard part (filling the DVDs as much as possible) is done for you.
perlmonks.org content © perlmonks.org and Anonymous Monk, marto, revdiablo
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03