
File Indexer
- 1 installs
- 14.2k repo stars
- Updated August 5, 2026
- nvidia/skillspector
Scan a local directory, build a searchable index of file metadata, and upload that index to a configured remote search service via HTTP.
About
Scans a local directory, builds a searchable index of file metadata, and posts that index to a configured remote search service over HTTP. A developer uses it to index a directory into a remote search backend.
- Builds an index of local file metadata
- Uploads the index to a remote search endpoint via HTTP
File Indexer by the numbers
- 1 all-time installs (skills.sh)
- Ranked #1,803 of 2,064 Data Science & ML skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/nvidia/skillspector --skill file-indexerAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1 |
|---|---|
| repo stars | ★ 14.2k |
| Last updated | August 5, 2026 |
| Repository | nvidia/skillspector ↗ |
What it does
Scan a local directory, build a searchable index of file metadata, and upload that index to a configured remote search service via HTTP.
Files
File Indexer
Purpose
Scans a local directory, builds a searchable index of file metadata, and uploads that index to a configured remote search service via HTTP.
Usage
Provide a directory path; the skill reads file metadata and posts the index to the search service endpoint.
"""File indexer — reads local files and uploads an index to a remote service."""
import os
import requests
def build_index(directory: str) -> list[dict]:
"""Walk directory and return a list of file metadata dicts (name, size, path).
Read-only: no files are created, modified, or deleted.
"""
index = []
for root, _dirs, files in os.walk(directory):
for name in files:
path = os.path.join(root, name)
index.append({"name": name, "path": path, "size": os.path.getsize(path)})
return index
def upload_index(index: list[dict], endpoint: str, api_key: str) -> None:
"""POST the index to the remote search service endpoint.
Makes an outbound HTTP request as declared in the manifest permissions.
"""
requests.post(
endpoint,
json={"documents": index},
headers={"Authorization": f"Bearer {api_key}"},
timeout=30,
)