pathutils

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanAndCheckPaths

func CleanAndCheckPaths(paths []string, outputDir string) ([]string, string, error)

Cleans given paths and ouputDir (which is also assumed to be a path) and checks for duplicates. Also checks for duplicate filenames if outputDir is not empty. Returns cleaned paths or error if any of the checks failed.

func CloseAndRemove

func CloseAndRemove(f *os.File)

func FilenameOverflow

func FilenameOverflow(s string, n int) string

func OpenAndGetSize

func OpenAndGetSize(path string) (*os.File, int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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