laneDir (ticket-finder.ts)

ClawRecipes · score 9.3 · files
`laneDir` resolves directional lane variant ("left"/"right") from filename basename of ticket files matching ticket number, enabling owner/ticket pairing. Needs explicit sentence.

Filepath (ChatPanelData.kt)

tabby · score 9.1 · files
Model for chat panel data, parses file paths into repository URIs and position ranges, integrates Git file metadata.

ingest.ts

slidemason · score 9.1 · files, file-tree-walk, metadata-extraction, ingestion-pipeline, dir-stat
Walks file tree, reads dir entries and stats, yields relative paths and metadata for ingestion.

write (ExcelUtils)

ruoyi-office · score 9.0 · files, excel-export, file-download, http-response, column-formatting
Writes an Excel file to the HTTP response with column width adaptation, dropdown sheets, and Long-to-String conversion to avoid precision loss, then sets download headers.

OpenSSHStore

Posh-SSH · score 9.0 · files, openssh-format, known-hosts, key-management, auth
Reads and writes known_hosts and keys in OpenSSH format.

Safe File Reader (utils/fs-safe.js)

agentsys · score 9.0 · files, Files / Storage, filesystem, security, utility
Reads a file with an optional size limit using a single file descriptor to avoid TOCTOU race conditions.

join_under_base (file_utils.py)

eigent · score 9.0 · files
Joins paths securely under a base directory, preventing traversal.

Document File Resolver (document/utils.ts)

giselle · score 8.9 · files, Files / Storage, document, vector-store, mime
Validates and resolves supported document file types for vector stores based on MIME type or file extension.

lane_dir (ticket_finder.py)

hermes-recipes · score 8.9 · files
Ticket file discovery, parsing, and numbering helpers. Port of clawrecipes/src/lib/ticket-finder.ts. Pure file I/O on the lane directories — no Hermes API dependencies.

Split (gitignore.go)

whatsun · score 8.8 · files
Package fsgitignore adapts go-git's functions for use with an io/fs filesystem.

startsWith (delivery-files)

CopilotKit · score 8.8 · files, byte-array-check, file-type-detection, data-validation, binary-prefix
Checks if a Uint8Array begins with a given byte prefix, used for file type detection or data validation.

getValidRootDirectories (roots-utils.ts)

servers · score 8.8 · files
Resolves and validates filesystem root directories from URI specifications.

Content Path Utilities (utils/content-paths.ts)

llms-txt-hub · score 8.8 · files, Files / Storage, node, path, utils
Helper functions to resolve monorepo content directories and file paths for resources and websites.

JSON Depth‑First Reader (json/base.py)

llama-hub · score 8.7 · files, Files / Storage, json, parsing, depth-first
Traverses JSON objects depth‑first, yielding leaf node paths with configurable level back, useful for embedding hierarchical data.

read_file (files.py)

agent-zero · score 8.6 · files
Reads file, "retrieval"

writeJsonAtomic (dod-check.ts)

openclaw-control-center · score 8.6 · files
Write JSON marker via rename, ensures atomic dirs, updates covers.

registerFileResources (files.ts)

servers · score 8.6 · files
Registers file handlers in MCP server; detects MIME types and reads local files for resource operations.

process_image (utils.py)

screenshot-to-code · score 8.6 · files
Encodes image→base64 string; preprocessing utility for transmission.

generateLatexForTemplate (index.ts)

resume · score 8.4 · latex-templates, template-registry, files
LaTeX template registry. /

find_gateway_files (gateway-patch.py)

PocketClaw · score 8.4 · integration, file-discovery, route-injection, gateway-patching, script-scanning
Finds gateway patch files in scripts directory for route injection.

WormholeError (errors.py)

magic-wormhole · score 8.4 · files
Defines exception classes for the wormhole secure file transfer protocol, including server errors, connection failures, transfer problems, and security-related errors.

hashRegularFile (staging)

awesome-omni-dsh-plugins · score 8.4 · files, sha-512-hashing, file-hashing, toctou-safety, size-limiting
Hashes a regular file with SHA-512 while enforcing size limits and TOCTOU safety checks, returning the digest, byte count, and a UTF-8 prefix for content inspection.

File Modification Diff Utility (utils/diff.ts)

bolt.diy_V2.0 · score 8.3 · files, Files / Storage, diff, file, utility
Computes diffs between original and modified files, returns minimal representation as diff or full content, and provides regex for modifications tag.

asset_protocol

tauri · score 8.3 · dev-tools, uri-scheme, asset-loading, protocol-handler, files
Registers a custom URI scheme protocol for resolving bundled app assets in Tauri.

displayCsvExportBtn (csv-export.js)

useful-forks.github.io · score 8.3 · files, csv-export, button-rendering, export-ui
Renders CSV export button UI; defines export div/button IDs.

atomic_write (state)

FreeRideV3 · score 8.3 · files, atomic-file-write, file-permissions, temp-file-rename
Writes content to a file atomically using a temp file and os.replace, ensuring readers see only complete versions. Defaults to restrictive 0o600 permissions to protect sensitive da

ensure_within_root (paths)

ClawTeam-OpenClaw · score 8.3 · dev-tools, path-traversal-protection, path-validation, sandbox, files
Joins path parts under a root directory and rejects any resulting path that escapes outside the root, ensuring safe file access.

atomic_write_text (fileutil)

ClawTeam-OpenClaw · score 8.3 · files, atomic-write, file-integrity, temp-file-rename
Writes string content to a file atomically using a temp file and os.replace, ensuring data integrity and preventing partial writes.

DocumentStatus (document.py)

MetaGPT · score 8.3 · files, document-lifecycle, state-machine, workflow-tracking, automation
Tracks and manages document processing lifecycle states (draft, review, approved, archived).

findTicketFile (ticket-workflow.ts)

ClawRecipes · score 8.3 · files
Locates file path for ticket from thread ID in markdown store.

DesignSystemGenerator (design_system.py)

ui-ux-pro-max-skill · score 8.2 · files, design-tokens, code-generation, cli-tooling, ui
Generates design system tokens and styles for the CLI's frontend assets.

File receiver

magic-wormhole · score 8.2 · files, file-transfer, transport, offer-ack
Async file-receiving transport pairing offers, acknowledgments, and TransitReceiver.

teamWorkspace (tickets.ts)

ClawKitchen · score 8.2 · files
Resolves file paths for team-scoped ticket workspaces and stage directories in a markdown-based ticket system.

SourceInfo (cli/source_detector.py)

mperkins0155/Skill_Seekers · score 8.2 · files, Files / Storage
Source type detection for unified create command. Auto-detects source type from user input — supports web URLs, GitHub repos, local directories, and 14+ file types (PDF, DOCX, EPUB

calculateFileHash (utils/index.ts)

vibesdk · score 8.2 · files, Files / Storage
* Calculate SHA256 hash of content (first 32 chars) This matches Cloudflare's expected hash format /

validatePath (filesystem.ts)

DesktopCommanderMCP · score 8.1 · files, path-sanitization, directory-traversal-prevention, filesystem-security, input-validation
Validates filesystem path safety, preventing directory traversal attacks. (domain: security, files)

caminho_recurso (paths.py)

ProspectOS · score 8.1 · file-paths, asset-routing, execution-modes, files
Caminhos centrais do app: onde ficam os recursos (read-only) e os dados (graváveis). Dois modos de execução: - **Fonte** (clone do repo, `py app.py`): tudo fica na pasta do projeto

SmbLibrary (smb.py)

Nettacker · score 8.1 · files
Implements SMB file-sharing and Windows networking credential auth functions, wrapping impacket's SMBConnection.

getSessionDir (checkpoint)

openclaw-master-skills · score 8.1 · files, path-sanitization, session-management, path-traversal-prevention, storage
Sanitizes a session ID and joins it with the checkpoint directory to produce a safe per-session path, preventing traversal.

VideoExtractor (json_output.py)

Dumb-downloader-that-scrapes-the-web · score 8.1 · files
Extracts video metadata to JSON output; saves info for CLI and ffmpeg integration.

_load

ClawTeam-OpenClaw · score 8.1 · files, json-parsing, config-loading, file-reading, fallback-handling
Reads and parses a JSON file from a given path, returning an empty dict if the file is missing or invalid. Ensures safe, fallback-driven config loading.

File Import and Processing Pipeline (core/import-file.ts)

mperkins0155/gbrain · score 8.1 · files, Files / Storage, import, markdown, chunking
Handles importing files (code, markdown, images), parses content, extracts references, chunks text, runs embeddings, and stores pages with sanity checks.

deflate (fflate.module.js)

game-studio-crew · score 8.1 · zlib-decompression, data-compression, files
Data compression/decompression lib (ECMA) — implementation of zlib.

is_binary_file (main)

mantis · score 8.1 · files, file-type-detection, byte-scanning
Checks if a file is binary by detecting null bytes in its initial block, treating read errors as binary.

Context.php

aimeos-laravel · score 8.0 · files, hash-storage, file-streaming, content-addressing, file-retrieval
Stores and retrieves file content via hash-based protocol, keyed by path, with stream support.

setAllowedDirectories (lib.ts)

servers · score 8.0 · files
Configures permitted directory paths for filesystem operations during diff generation.

parse (index)

prompts.chat · score 8.0 · ai, format-detection, yaml-parser, json-parser, markdown-parser
Entry-point parser that auto-detects prompt format (yaml, json, markdown, text), dispatches to the appropriate parser, and normalizes the result into ParsedPrompt.

Async Image Upload Manager (agent/upload_manager.py)

MIRIX · score 8.0 · files, Files / Storage, upload, async, image
Asynchronous manager that uploads images concurrently, applying optional compression via libvips or Pillow, and tracks each upload's status with timeout handling.

FileUploadZone.tsx

slidemason · score 8.0 · files
Handles file uploads, enables end. → Gated input rendered input.

fsTree (fs-service.ts)

pocketshell · score 8.0 · ui, filesystem-read, path-resolution, stateless-fs, trust-boundary
P1: file service. Stateless — takes absolute-ish paths, resolves them, and reads the real filesystem. NO sandbox: the trust boundary is the Noise handshake + pairing (an authorized