0.8.0.0
This commit is contained in:
28
Yuba.php
28
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
|
||||
|
||||
Reference in New Issue
Block a user