Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

delete all files in the gitignore.py 358 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  1. # delete all __MACOSX folder like main/15 - Boss Level Challenge 2 The Simon Game/Folder - 192 - Simon-Game-Challenge-Step-1-Answer/__MACOSX
  2. import os
  3. import glob
  4. import shutil
  5. folders = glob.glob('main/**/.git', recursive=True)
  6. for folder in folders:
  7. print(folder)
  8. try:
  9. shutil.rmtree(folder)
  10. except Exception as e:
  11. print(e)
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...