1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Fix permissions

This commit is contained in:
DanielnetoDotCom 2021-05-07 10:06:52 -03:00
parent 90eb5da21a
commit 0c5f812c96

View file

@ -36,7 +36,7 @@ foreach ($videos as $value) {
$countItems++;
echo "[$countItems/$totalItems] Process file {$file} " . PHP_EOL;
if (is_dir($file)) {
if(!$isStorage || Video::isNewVideoFilename($move['oldDir'])){
if(!$isStorage && !Video::isNewVideoFilename($move['oldDir'])){
//echo $file.PHP_EOL;
$move = Video::updateDirectoryFilename($file);
echo "-->".PHP_EOL." {$count}/{$total} move directory {$move['oldDir']} to {$move['newDir']} ".PHP_EOL."<--" . PHP_EOL . PHP_EOL;