filesystem

package
v0.0.0-...-86cbbd8 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackOncePath

func BackOncePath(path, after string) (newPath string)

func CalculateDirectoryHashes

func CalculateDirectoryHashes(directory, extension string) (sha1Hashes []string, sha512Hashes []string, allFiles []os.DirEntry, err error)

func CalculateHashes

func CalculateHashes(filepath string) (hashSha1 string, hashSha512 string, err error)

func ChangeExecPath

func ChangeExecPath() (err error)

func CleanPath

func CleanPath(path string) (cleanedPath string)

func ClearPath

func ClearPath(path, extension string) (err error)

func CopyDirectory

func CopyDirectory(source string, target string) (err error)

func CreatePath

func CreatePath(path string) (err error)

func DeleteFile

func DeleteFile(path string) (err error)

func ExistPath

func ExistPath(path string) (exists bool)

func ExtractZip

func ExtractZip(source, dest string) (err error)

func GetExecPath

func GetExecPath() *string

func GetSlug

func GetSlug(path string) string

func InitExecDir

func InitExecDir() (err error)

func IsDirEmpty

func IsDirEmpty(path string) (empty bool)

func ReadDirectory

func ReadDirectory(path string, extension string) (files []os.DirEntry, err error)

func ReadDirectoryRecursive

func ReadDirectoryRecursive(path string, extension string) (files []string, err error)

func ReadFile

func ReadFile(filepath string) (content []byte, err error)

func RemoveDirectory

func RemoveDirectory(path string) (err error)

func WriteFile

func WriteFile(path string, byte []byte) (err error)

func ZipSource

func ZipSource(source, target string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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