diff --git a/Tester.zip b/Tester.zip index 12bb526..a3296a7 100644 Binary files a/Tester.zip and b/Tester.zip differ diff --git a/Yuba.app.zip b/Yuba.app.zip index c0dea5f..5636eeb 100644 Binary files a/Yuba.app.zip and b/Yuba.app.zip differ diff --git a/Yuba.php b/Yuba.php index 08cabe1..93a7e31 100755 --- a/Yuba.php +++ b/Yuba.php @@ -471,6 +471,27 @@ foreach ($files as $splFileInfo) { } + // Create batch + + $line = array(); + if ($p['thumbs'] || $p['icons'] || $p['meta'] || $p['hash'] || $p['contents'] || $p['spotlight']) { + + $parts = array(); + $parts[] = $bin_php; + $parts[] = escapeshellarg(realpath("helper2.php")); + $parts[] = $i; + $parts[] = $passed_total; + $parts[] = escapeshellarg($pathname); + $parts[] = $splFileInfo->getType(); + $parts[] = escapeshellarg($bpath); + $parts[] = $mytime; + + $tcmd = implode(" ",$parts); + msg($tcmd); + $line[] = $tcmd; + + } + // Check file can be read if ($realpath && !is_readable($realpath)) { @@ -487,6 +508,13 @@ foreach ($files as $splFileInfo) { } + +$batchfile = $tmpdir."/__batch.sh"; +if (!empty($line)) { + file_put_contents($batchfile,implode("\n", $line)); + msg("Writing batch to file"); + } + echo ProgressBar::finish($wopt_clear); // Thow permissions error