Created
April 7, 2015 21:42
-
-
Save ziplizard/332977fbe9366c50c883 to your computer and use it in GitHub Desktop.
This file contains 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
exclude = set(['Plugin/DebugKit','Vendor','webroot/min']) | |
for root, dirs, files in os.walk('/var/www/html/myproject/app', topdown=True): | |
dirs[:] = [d for d in dirs if d not in exclude] | |
for file in files: | |
if file.endswith(('.php','.ctp')): | |
print root, '/', file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment