Copy ignoring local directory structure

I’d like to copy only files onto the remote directory, ignoring the local directory structure. Will the following code work

rclone copy entries --include="**/*.txt" remote:entries

If I have this local directory structure

entries
  |
  `-one/
  | |
  | `one.txt
  |
  `-two/
    |
    `-two.txt
    |
    `-two-two/
      |
      `-two-two.txt

And want to get the following remote directory

entries
  |
  `-one.txt
  |
  `-two.txt
  |
  `-two_two.txt

Alas rclone doesn’t have a way to do that right now.

You could do it with a bit of scripting, something like this

find . -type f | xargs -i -d"\n" bash -c 'rclone copyto {} remote:`basename {}`'

This isn’t terribly efficient as it re-runs rclone and makes the remote each time. There may also be problems with files with spaces in them - I didn’t test that!