Guide to List all the files of folder stored in Google drive using colab

Requirements:
This tutorial will guide you to list all the files contained in google drive using Colab.

Step 1:
Open Google Colab
Step 2:
Mount your drive in Google Colab
Step 3:
Goto insert and select New Code so that we can put our code
Step 4:
Install tree using the following command

Steps:

Install tree
!apt-get install tree

Copy path of the folder whose files you want to list

Use the following code
!tree 'your folder path'

Final Result of the listed files

5 Likes