Someone gave me this to recursively expand folder placeholders:
exec 7>&1
output="go"
while [ "$output" ]; do
output=$(find . -name "*.cloudf" -print0 | xargs -0 -n 1 python odrive.py sync | tee /dev/fd/7)
done
(.cloudf are odrive placeholder files; the sync command expands them into folders, and these new folders will then contain more .cloudf placeholders which need to expanded.)
It works. The problem is that after running it a few times, it stops showing its progress.
The exec 6>&1 and tee /dev/fd/6 are supposed to be some kind of trick for showing progress ... but they only work once or twice, then they stop working.
I tried changing the 6 to 7 and other numbers, but that didn't help.