Last active
June 5, 2019 22:07
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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