Google Drive: how to get full path from file or folder ID?

What is the problem you are having with rclone?

I have a file/folder in my Google Drive. I know its ID. Is it possible to get its full path using rclone?

Run the command 'rclone version' and share the full output of the command.

N/A

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

N/A

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

N/A

A log from the command that you were trying to run with the -vv flag

N/A

could grep the output of rclone lsf --format=pi
or
https://rclone.org/drive/#query

Thanks

That seems to let me list the file/folder IDs, but how can I provide it with a file/folder ID, and get the path?

I'm not sure, but I think that may be too low-level, so it doesn't actually expose paths, only IDs.

id='16c6746VonojeB4iTH34K3SAXlTZqq2PX'
rclone lsf gdrive: --format=ip --absolute --recursive --fast-list | grep $id | awk -F ';' '{print $2}'
/src/file.ext