When using rclone with TeamDrive I can upload, but rclones does not check if the file exists, so everytime I upload stuff it gets duplicated, I end up having many files with exactly the same name, size.. etc.
I also noticed that when I run rclone ls teamdrive: it shows nothing, but if I go and check on the website there are all the files.
That only happens on teamdrives, on regular account or gsuite I can see and upload the normal way.
I've configured rclone in a headless machine, the way that I have to enter a URL and then give back a code.
What is your rclone version (output from rclone version)
1.50
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu Server 16.'4
Which cloud storage system are you using? (eg Google Drive)
Google Drive, Team Drive shared folder
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone copy /file teamdrive:/ -v -P
rclone ls teamdrive:
A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)
rclone: Version "v1.50.1" starting with parameters ["rclone" "-vv" "ls" "teamdrive:"]
2019/11/07 15:28:39 DEBUG : Using config file from "/home/USER/.config/rclone/rclone.conf"
2019/11/07 15:28:39 DEBUG : 5 go routines active
2019/11/07 15:28:39 DEBUG : rclone: Version "v1.50.1" finishing with parameters ["rclone" "-vv" "ls" "teamdrive:"]
Thanks for the asnswer, here is the full -vv log of two copyes for the same file to the same teamdrive, you can see that rclone says that there is no duplicate, when in fact, there is (which leads to the problem that it can not list the files on the teamdrive). I have to say that the problem happens on all diferents teamdrives, no only that one in particular.
This looks like the team drive inconsistent directory listing problem...
Try --disable ListR in the call to rclone ls
Team drives seem to take some time for the directory listings to catch up so if you do two copies quickly, you'll get duplicates, whereas if you wait some time between them you wont.
Same result using --disable ListR, it's true that when I upload filed I takes a bit of time to access them on Drive (website), but right know all the files I've uploaded are visible on the webpage and rclone ls still says there's nothing (I have things uploaded from several days ago).
There must be a problem somewhere... but I don't know how to proceed or what else to check
This is usually used by its command line flag --shared-with-me to allow you to see the files that people share with you which rclone doesn't normally show you. However the flag is exclusive - if you set it you only see shared with me stuff which was the problem here.