GithubHelp home page GithubHelp logo

handle-google-drive's Introduction

handle-google-drive

download these scripts and upload them in your drive related colab and it will help in the time of freaking pain with google drive file extraction and memory management and more

1 unzip drive file

if your drive has large zipped file containing thousands of file then extracting it is painfull. time lengthy, does not works as wanted but more importantly your data has to be extracted through third party so literally your data is stolen. So i built below script for myself (and opened for you now) my unzip_drive_file.ipynb script will take path (like abir/images/mine.zip) where the file is located next it will take a path (like abir/collection) the destination and put everything in (abir/collection/mine) creating mine folder there and if there is already mine folder it will ask you permission too.

2 delete_drive_trash_permanently

We all know google provides us 15GB of free space to keep files. And when we delete anyfile it goes to trash and takes 30days to completely removed. or we can forcefully delete them permanently

But what if we had to upload 5GB+ data with thousands of file then it's pain in the ass to permanently delete them. You should know that if we click empty bin it does not work in google drive it stills occupies the memory. but selecting and deleting manually works

so i built the (permanently deleting from drive.ipynb) script it will delete all trash one by one. load this script to your google colab and run last 2 cell then give permission it asks for (totally safe as no third party included all handled by google colab)

But if you want to delete a directry and empty the trash then run all cell there is some guidline in the script too.

3 measure folder size and total content in it

in google drive you don't know total number of picture or video or any document file in your folder. If you run this script it will ask you a folder path, providing the folder path you can get size of the folder and number of file in the current folder.

Bonus: Also it will inform about all the sub folder in that folder and there information too.

handle-google-drive's People

Contributors

abdur-rahim-sheikh avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

pijushbarai

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.