Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DataSolveProblems/b8f1a1879f7083505bc16d12ba0c9fd2 to your computer and use it in GitHub Desktop.
Save DataSolveProblems/b8f1a1879f7083505bc16d12ba0c9fd2 to your computer and use it in GitHub Desktop.
import os
for item in os.listdir(os.getcwd()):
if os.path.isdir(item):
if not os.listdir(item):
print(os.path.join(os.getcwd(), item))
os.removedirs(os.path.join(os.getcwd(), item))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment