fs

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureFolder

func EnsureFolder(dir string) error

EnsureFolder checks if a folder exists, and if not attempts to create it.

func Filesize

func Filesize(path string) (int64, error)

Filesize returns the filesize of a given file Just a utility function to make sure with get the actual filesize and not 0 for symlinks

func IsInDir

func IsInDir(path, dir string) bool

IsInDir checks if a path is in a given directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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