getFiles: use NULL as separator
This commit is contained in:
parent
800525d90b
commit
e335d42156
@ -8,7 +8,7 @@ getFiles() {
|
||||
(( cron )) || echo -n "Scanning $sourcepath... "
|
||||
# We probably have thousands of files, don't waste time on disk writes
|
||||
echo 'BEGIN TRANSACTION;' >&3
|
||||
while read time size filename
|
||||
while read -d $'\0' time size filename
|
||||
do
|
||||
if (( skip_us_timestamp ))
|
||||
then
|
||||
@ -63,7 +63,7 @@ getFiles() {
|
||||
fi
|
||||
progressSpin
|
||||
done < <(
|
||||
find "$sourcepath" "${prunes[@]}" -type f -not -name '.*' -printf "%T@ %s %P\n"
|
||||
find "$sourcepath" "${prunes[@]}" -type f -not -name '.*' -printf "%T@ %s %P\0"
|
||||
)
|
||||
echo 'COMMIT;' >&3
|
||||
(( cron )) || echo -n $'\r'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user