fsutils

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package fsutils provides a set of utilities for working with the filesystem in Go.

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

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