Skip to content

Instantly share code, notes, and snippets.

@apoorvpandey0
Last active September 27, 2021 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apoorvpandey0/933d08d797112dbae47c893251881fa8 to your computer and use it in GitHub Desktop.
Save apoorvpandey0/933d08d797112dbae47c893251881fa8 to your computer and use it in GitHub Desktop.
Automatically cleans your flutter projects and saves you GIGABYTES of space on keeping multiple flutter projects in a folder
# TODO:
# 1. Implement wait time for flutter clean to complete for a given folder and then move to next
# 2. Ignore other files like .zip etc which may be in the folder
import os
for i in os.listdir():
os.chdir(i)
os.system('flutter clean')
print('Cleaned ',i)
os.chdir('../')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment