1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
DanielnetoDotCom 2021-05-06 12:23:12 -03:00
parent a181a1747d
commit 40a23fef81

View file

@ -20,9 +20,13 @@ foreach ($videos as $value) {
$basename = "{$path}{$value['filename']}";
echo " {$count}/{$total} Searching {$basename} ".PHP_EOL;
$glob = glob("{$basename}*");
$totalItems = count($glob);
echo "Found total of {$totalItems} items " . PHP_EOL;
$dirname = $basename.DIRECTORY_SEPARATOR;
$countItems = 0;
foreach ($glob as $file) {
echo "Process file {$file}" . PHP_EOL;
$countItems++;
echo "[$countItems/$totalItems] Process file {$file} " . PHP_EOL;
if (is_dir($file)) {
if(!$isStorage){
//echo $file.PHP_EOL;