fsutil

package
v0.8.15 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir added in v0.4.9

func CopyDir(src, dest string) error

CopyDir recursively copies the src directory to the dest directory

func DirExists

func DirExists(path string) (bool, error)

DirExists checks if a directory exists

func EnsureDir

func EnsureDir(path string)

EnsureDir makes sure a directory exists. It panics if something goes wrong.

func Extract

func Extract(extension, src, dest string) error

func ExtractTarGz

func ExtractTarGz(src, dest string) error

func ExtractTarXz added in v0.4.8

func ExtractTarXz(src, dest string) error

func FileExists

func FileExists(path string) (bool, error)

FileExists checks if a file exists

func Glob

func Glob(pattern, exclude string) ([]string, error)

func Sync added in v0.8.11

func Sync(sourceDirs []string, destDir string, mirror bool) error

func Unzip

func Unzip(src, dest string) ([]string, error)

Unzip unzips an archive to a destination directory

Types

type Globs

type Globs []string

Globs represents one filepath glob, with its elements joined by "**".

func (Globs) Expand

func (globs Globs) Expand() ([]string, error)

Jump to

Keyboard shortcuts

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