Skip to content

Instantly share code, notes, and snippets.

@matthew-mclaren
Created February 12, 2025 19:04
Show Gist options
  • Save matthew-mclaren/c51e860a321985f0f7e84c9468cc9965 to your computer and use it in GitHub Desktop.
Save matthew-mclaren/c51e860a321985f0f7e84c9468cc9965 to your computer and use it in GitHub Desktop.
import os
def main():
user_home = os.path.expanduser("~")
search_folder = os.path.join(user_home, "Library")
for root, folders, files in os.walk(search_folder):
for f in files:
if f == "Local State":
path = os.path.join(root, f)
print(f"Local State Found - {path}")
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment