file

package
v0.0.0-...-fe7320a Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDirToCache

func AddDirToCache(dir string)

func ContainsDir

func ContainsDir(dirs []string, dir string) bool

func Exists

func Exists(filename string) bool

Exists returns true if the given file exists

func HasSubdirectories

func HasSubdirectories(dir string) (bool, error)

Helper function to check for subdirectories

func Hash

func Hash(filename string) (string, int64, string, error)

Hash a file, return its absolute path, size and SHA256

func LoadCachedDirs

func LoadCachedDirs() []string

func WalkDirFiles

func WalkDirFiles(dirPath string) ([]string, error)

Helper function to list files in a directory and get their absolute paths

Types

This section is empty.

Jump to

Keyboard shortcuts

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