futils

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2021 License: MIT Imports: 10 Imported by: 0

README

futils

Golang help functions for file handling

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(SourceFullFilename, targetFullFilename string) error

func CopyFolder

func CopyFolder(sourceFolderName, targerFolderName string) error

func CreateEmptyFile

func CreateEmptyFile(fullFilename string) error

func CreateFile

func CreateFile(fullFilename string, buffer *bytes.Buffer) error

func CreateFolder

func CreateFolder(folderName string) error

func DeleteFile

func DeleteFile(FullFilename string) error

func DeleteFolder

func DeleteFolder(foldername string) error

func FileOrFolderExists

func FileOrFolderExists(fileOrFolderName string) bool

func GetFolderContentRecursively

func GetFolderContentRecursively(fromFolder string) (map[string]FileInfo, error)

func MoveFile

func MoveFile(currFullFilename, newFullFilename string) error

func MoveFolder

func MoveFolder(currFoldername, newFoldername string) error

func PrintFolder

func PrintFolder(folder string) error

func PrintFolderRecursively

func PrintFolderRecursively(fromFolder string) error

func ReadGobEncodedFile

func ReadGobEncodedFile(fullFilename string, data interface{}) error

func RenameFile

func RenameFile(currFullFilename, newFullFilename string) error

func WriteGobEncodedFile

func WriteGobEncodedFile(fullFilename string, data interface{}) error

Types

type FileInfo added in v0.2.1

type FileInfo struct {
	IsDir        bool
	FullFileName string
	Size         string
	Date         string
}

Jump to

Keyboard shortcuts

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