Skip to main content
You can use the files.getInfo() / files.get_info() method to retrieve metadata about a file or directory. It returns details such as the filename, type, and path.

Getting metadata about a file

Getting metadata about a directory

Last modified on June 4, 2026