fsutils

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectContentType

func DetectContentType(path string) (string, error)

DetectContentType will detect the content type of a file.

func DirExists

func DirExists(path string) bool

DirExists function will check if the Directory exists in the specified path

func FileExists

func FileExists(path string) bool

FileExists function will check if the file exists in the specified path and if it is a file indeed

func LookupContentType

func LookupContentType(path string) string

LookupContentType will lookup ContentType based on the file extension. This function will only check based on the name of the file and use the file extension.

func PathExists added in v0.0.3

func PathExists(p string) bool

PathExists will return a boolean if the file/diretory exists

Types

This section is empty.

Jump to

Keyboard shortcuts

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