I’m currently developing a google drive client. This documentation describes how to access collections or items by their ID. But how is it possible to get an item by its path?
For example, I want to get a file /documents/pictures/sunshine.png. How can I get this file withouth knowing its ID?
With the current version of the API, it is not possible to directly access a file by filename. This limitation is due to the fact that a user can have multiple files having the same name in the same folder.
The only way to get access to a file is by its ID. The path is not necessary as the file’s metadata contains parentsFolder information.