I tried using this command:
find /src/dir -type f -exec mv --backup=numbered -t /dst/dir {} +
sourced from here, but error messages suggest find
requires root on Android. Any other ideas as to how to accomplish this? I want only the files in the destination folder (i.e. without the directory structure, all files in one directory) while maintaining the source directory structure. I've tried Termux, Terminal Emulator, and Tasker so far, without success.
adb shell
or some third-party terminal app?cp -a /src/dir /dst/dir
? Guess you want to keep the directory structure, right?find
claims to require root: I've checked on two devices (LP, MM) and it doesn't. Could you please specify device and Android version? Worth a try:busybox find
. If there's no busybox, trytoybox
. Some variant is running on every device I've seen.