mrlapinot
12-29-2007, 08:43 PM
Hi,
the addon "copy_folder" uses natcasesort to sort the files' list but then iterates on $files with the $k index. Sadly, the key/value association is preserved by natcasesort, making the sort useless.
To fix the bug, just change line 66 and following to:
foreach($files as $k => $file)
{
if($secondcount < 11) $secondcount = "0$secondcount";
sleep(1);
(instead of: for($k;$k<count($files);$k++))
WARNING: I didn't check if this patch doesn't break anything when using exifdate's sort.
Regards.
the addon "copy_folder" uses natcasesort to sort the files' list but then iterates on $files with the $k index. Sadly, the key/value association is preserved by natcasesort, making the sort useless.
To fix the bug, just change line 66 and following to:
foreach($files as $k => $file)
{
if($secondcount < 11) $secondcount = "0$secondcount";
sleep(1);
(instead of: for($k;$k<count($files);$k++))
WARNING: I didn't check if this patch doesn't break anything when using exifdate's sort.
Regards.