pathutil

package
v0.1.149 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package pathutil provides path manipulation utilities for the server package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveImagesDirPrefix

func RemoveImagesDirPrefix(normalizedImagesDir, path string) (string, error)

RemoveImagesDirPrefix removes images dir prefix with path traversal check. normalizedImagesDir should be the pre-normalized result of filepath.ToSlash(imagesDir). Returns an error if the resulting path contains path traversal sequences (..).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL