fileutil

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StaticMimeTypeMap = map[string]string{}/* 1260 elements not displayed */

Functions

func DetectMimeType

func DetectMimeType(path string, fileInfo fs.FileInfo, extended bool) string

func FixPath

func FixPath(path string) (string, error)

func IsInitScriptPath

func IsInitScriptPath(input string) bool

IsInitScriptPath tries to determine if the input string is a path to a script rather than an inline script content.

func WinSymlinkDir

func WinSymlinkDir(path string, bits os.FileMode) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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