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

**URL:** <https://onehack.st/t/guide-to-list-all-the-files-of-folder-stored-in-google-drive-using-colab/73380>\
**Category:** Tools & Scripts\
**Tags:** tips-tricks\
**Created:** [March 14, 2020, 3:19pm UTC](https://onehack.st/t/guide-to-list-all-the-files-of-folder-stored-in-google-drive-using-colab/73380 "2020-03-14T15:19:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beast](https://onehack.st/user_avatar/onehack.st/beast/32/35433_2.png) [@beast](https://onehack.st/u/beast)\
**Post date:** [March 14, 2020, 3:19pm UTC](https://onehack.st/t/guide-to-list-all-the-files-of-folder-stored-in-google-drive-using-colab/73380/1 "2020-03-14T15:19:31Z")

</div>

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

> Step 1:  
> Open [Google Colab](https://colab.research.google.com/)  
> 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`
> 
> ![Screenshot (17)](https://onehack.st/uploads/default/original/3X/6/d/6d97902d77e8025c76a119659e9f0755973ec9fc.png)

> Copy path of the folder whose files you want to list
> 
> ![Screenshot (18)](https://onehack.st/uploads/default/original/3X/3/1/31712c1398262a5f44f3d241b4d61ca1124a1d2f.png)

> Use the following code  
> `!tree 'your folder path'`
> 
> ![Screenshot (19)](https://onehack.st/uploads/default/original/3X/9/5/95a442dbffd5e28462c95486f3adffec4d89b0e8.png)

> Final Result of the listed files
> 
> ![Screenshot (20)](https://onehack.st/uploads/default/original/3X/e/c/ec9321c55c0926f0f7b8df3f6fcb894236df740c.png)
