diff --git a/app/app.py b/app/app.py index 1c511dc..2768c6f 100644 --- a/app/app.py +++ b/app/app.py @@ -1264,8 +1264,12 @@ async def api_files_dirs(request: Request): if rel_path == '.': continue - if q and q not in rel_path.lower(): - continue + if q: + # Search in directory path and filenames + path_match = q in rel_path.lower() + file_match = any(q in fn.lower() for fn in filenames) + if not path_match and not file_match: + continue try: total_size = sum(os.path.getsize(os.path.join(dir_path, f)) for f in filenames)