shutil.rmtree("_wizard_source")
# populate empty directories with blank files
for dirpath, dirnames, filenames in os.walk(os.getcwd()):
if "/.git" in dirpath: continue
if not filenames and not dirnames:
open(os.path.join(dirpath, ".preserve-dir"), "w").write("")
shutil.rmtree("_wizard_source")
# populate empty directories with blank files
for dirpath, dirnames, filenames in os.walk(os.getcwd()):
if "/.git" in dirpath: continue
if not filenames and not dirnames:
open(os.path.join(dirpath, ".preserve-dir"), "w").write("")