Skip to content

Instantly share code, notes, and snippets.

@ntrogers
Last active January 4, 2018 18:49
Show Gist options
  • Save ntrogers/1f5eeb3b952141acbd886e3f19c335a6 to your computer and use it in GitHub Desktop.
Save ntrogers/1f5eeb3b952141acbd886e3f19c335a6 to your computer and use it in GitHub Desktop.
[Python - Recursive Search] Recursive file search #python #snippet
# Recursivly search for a specific file in all users home folders
import glob
for f in glob.iglob('/Users/*/Library/Preferences/com.apple.spaces.plist'):
print f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment