first commit

This commit is contained in:
N0\A
2025-10-21 14:18:26 +02:00
commit 1bf3a11208
10 changed files with 202 additions and 0 deletions

Binary file not shown.

8
core/file_search.py Normal file
View File

@@ -0,0 +1,8 @@
import shutil, subprocess, os
def find(pattern: str, root: str='/'):
path = os.path.expanduser(root)
if shutil.which('fd') is None:
raise RuntimeError("fd not installed")
out = subprocess.check_output(['fd', pattern, path], text=True, errors='ignore')
return out.splitlines()