by gooob on 4/27/25, 12:04 AM with 10 comments
by sherdil2022 on 4/27/25, 12:17 AM
by arthurcolle on 4/27/25, 1:08 AM
by scottmcdot on 4/27/25, 12:53 AM
by turtleyacht on 4/27/25, 12:56 AM
for f in $(ls "/mnt/dir"); do
cp -v "$f" /elsewhere
done
Because -R doesn't handle retries when cp(1) errors out intermittently (USB MTP to phone). I don't remember it being this hard in bash, or Android just is like this. Hopefully can figure it out without going to perl or C. Maybe dump(8).Even though 54 GB partition created, it only takes up 22 GB or so. Either missing a lot of files or FFS compacts it well.
by nailer on 4/27/25, 1:52 AM