change move batch
This commit is contained in:
parent
afd6628508
commit
8691264f25
|
@ -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
|
||||
mv -- "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file}" "${dst_file}"
|
||||
echo "Déplacé ${src_file} -> ${dst_file}"
|
||||
else
|
||||
echo "Fichier '${src_file}' introuvable."
|
||||
# else
|
||||
# echo "Fichier '${src_file}' introuvable."
|
||||
fi
|
||||
done
|
||||
|
||||
echo "dossier de destination:
|
||||
$dst_dir"
|
||||
# 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
|
||||
|
|
|
@ -10,17 +10,18 @@ fi
|
|||
start_num="$1"
|
||||
end_num="$2"
|
||||
src_base_name="merging_"
|
||||
count=0
|
||||
|
||||
|
||||
# Déplacer des fichiers depuis le répertoire actuel vers le nouveau dossier
|
||||
echo "supprimer des fichiers PTO "
|
||||
# supprimer des fichiers PTO
|
||||
for i in $(seq -f "%03g" ${start_num} ${end_num}); do
|
||||
src_file="${src_base_name}${i}.pto"
|
||||
|
||||
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}"
|
||||
count=$((count+1))
|
||||
else
|
||||
echo "Fichier '${src_file}' introuvable."
|
||||
# else
|
||||
# echo "Fichier '${src_file}' introuvable."
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue