Skip to content

Instantly share code, notes, and snippets.

@ArturoNereu
Last active June 5, 2019 22:07
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArturoNereu/4b6b800841a472062e2ae8f88cce7957 to your computer and use it in GitHub Desktop.
Save ArturoNereu/4b6b800841a472062e2ae8f88cce7957 to your computer and use it in GitHub Desktop.
A collection of Python functions to make my life outside the Unity Editor easier
# A collection of Python functions to make my life outside the Unity Editor Easier
# Author: Arturo Nereu @ArturoNereu
# License: Do whatever you want with the code
import os
def removeMetaFiles(dirName):
for root, dirs, files in os.walk(dirName):
for name in files:
if name.endswith(".meta"):
fileToDelete = os.path.join(root, name)
print("Removing " + fileToDelete) ##Can be safely commented
os.remove(fileToDelete)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment