pathlib

package
v0.0.0-...-6fd8457 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package pathlib provides a way to safely create a file path without overwriting any existing files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Safe

func Safe(path string) string

Safe will take a destination path and return a validated path that is safe to use. without overwriting any existing files. If a conflict exists, it will append a number to the end of the file name. If the parent directory does not exist this function will return the original path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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