Hi all - I've been banging my head in this morning trying to solve a task I can't believe no one has wanted to do before - that being to copy a directory & subdirs & all files over to another location but strictly copying the BIGGEST files first. Why? Because, from what I can see, this will help stop fragmenting big files being copied to USB flash memory due to the way it seems to copy the file then move it, leaving a gap the size of the file. Bigger files can't fit in that gap so make their own. ETc etc. End result - biggest first SHOULD hopefully mean 1 gap used for all copies and the resulting files all lined up contiguously after it.
So this is what I've got so far - 2 problems to fix :
1 - only 1 level of directory is made on the destination path if it doesn't exist - I need it to make as many as necessary that don't exist yet
2 - when the first copy starts it says "not enough space" even though there is like 30g left on this device to copy a 4g file.
All input welcome!
_________________________________
Leozack
So this is what I've got so far - 2 problems to fix :
1 - only 1 level of directory is made on the destination path if it doesn't exist - I need it to make as many as necessary that don't exist yet
2 - when the first copy starts it says "not enough space" even though there is like 30g left on this device to copy a 4g file.
All input welcome!
_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);