change move batch

This commit is contained in:
Tykayn 2024-02-24 00:17:50 +01:00 committed by tykayn
parent afd6628508
commit 8691264f25
2 changed files with 9 additions and 6 deletions

View File

@ -24,10 +24,12 @@ for i in $(seq -f "%03g" ${start_num} ${end_num}); do
if [ -f "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file}" ]; then if [ -f "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file}" ]; then
mv -- "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file}" "${dst_file}" mv -- "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file}" "${dst_file}"
echo "Déplacé ${src_file} -> ${dst_file}" echo "Déplacé ${src_file} -> ${dst_file}"
else # else
echo "Fichier '${src_file}' introuvable." # echo "Fichier '${src_file}' introuvable."
fi fi
done done
echo "dossier de destination:
$dst_dir"
# supprimer les fichiers pto # supprimer les fichiers pto
bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/remove_pto_batch.sh $start_num $end_num bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/remove_pto_batch.sh $start_num $end_num

View File

@ -10,17 +10,18 @@ fi
start_num="$1" start_num="$1"
end_num="$2" end_num="$2"
src_base_name="merging_" src_base_name="merging_"
count=0
echo "supprimer des fichiers PTO "
# Déplacer des fichiers depuis le répertoire actuel vers le nouveau dossier # supprimer des fichiers PTO
for i in $(seq -f "%03g" ${start_num} ${end_num}); do for i in $(seq -f "%03g" ${start_num} ${end_num}); do
src_file="${src_base_name}${i}.pto" src_file="${src_base_name}${i}.pto"
if [ -f "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/INBOX_PTO_hugin/${src_file}" ]; then if [ -f "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/INBOX_PTO_hugin/${src_file}" ]; then
rm -rf "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/INBOX_PTO_hugin/${src_file}" rm -rf "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/INBOX_PTO_hugin/${src_file}"
count=$((count+1)) count=$((count+1))
else # else
echo "Fichier '${src_file}' introuvable." # echo "Fichier '${src_file}' introuvable."
fi fi
done done