safefilepath

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package safefilepath manipulates operating-system file paths.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFS

func FromFS(path string) (string, error)

FromFS converts a slash-separated path into an operating-system path.

FromFS returns an error if the path cannot be represented by the operating system. For example, paths containing '\' and ':' characters are rejected on Windows.

Types

This section is empty.

Jump to

Keyboard shortcuts

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