Opening files from google drive with Nautilus and GNOME Online Accounts

The problem with google drive and file name based locking is that in google drive a file name does not uniquely identify a file. You can have a directory with a file named passwords and right next to it another file named passwords:

google drive screenshot