Versions in this module Expand all Collapse all v1 v1.138.0 Sep 10, 2026 Changes in this version + var ErrNameExhausted = errors.New("no free filename after exhausting collision suffixes") + var ErrPathEscape = errors.New("path escapes the workspace or has invalid segments") + func RequestedBasename(requested string) string + type PathClass int + const PathEscaping + const PathInvalid + const PathWorkspaceRelative + func ClassifyRequestedPath(requested string) (PathClass, string) + type Result struct + ExtensionCorrected bool + RelPath string + RequestedExtension string + func Write(workspaceRoot, requestedPath string, data []byte, mimeType string) (Result, error)