fsutil

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package fsutil provides utility functions for working with the filesystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir added in v0.0.11

func CopyDir(src, dst string) error

CopyDir recursively copies a directory from src to dst.

func CopyFile added in v0.0.11

func CopyFile(src, dest string) error

CopyFile copies a single file from src to dest

func EnsureDir

func EnsureDir(path string) error

EnsureDir creates a directory if it does not exist.

func FromGobInto added in v0.0.25

func FromGobInto(file fs.File, destPtr any) error

FromGobInto decodes a gob-encoded file into a destination. The destination must be a pointer to the destination type.

func GetCallerDir added in v0.0.6

func GetCallerDir() string

GetCallerDir returns the directory of the calling function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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