utils

package
v0.9.5-0...-6b412ed Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64EncodeFile

func Base64EncodeFile(filePath string) (string, error)

func CopyDir

func CopyDir(src string, dst string) error

CopyDir recursively copies a directory tree

func CopyFile

func CopyFile(src, dst string) error

CopyFile copies a single file from src to dst

func CreateJunction

func CreateJunction(target, linkName string) error

CreateJunction creates a directory junction on Windows

func FormatFileSize

func FormatFileSize(s float64, base float64) string

func IsJunction

func IsJunction(linkName string) (bool, error)

IsJunction checks if a directory junction exists at the specified path

func Readdir

func Readdir(path string) ([]fs.DirEntry, error)

Readdir reads a directory at the specified path

func RemoveJunction

func RemoveJunction(linkName string) error

RemoveJunction removes a directory junction on Windows using fsutil

func Rmdir

func Rmdir(folderPath string) error

Rmdir deletes the specified directory and its contents

func Unzip

func Unzip(src, dest string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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