fs

package
v0.0.0-...-74292d7 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseName

func BaseName(f string) string

baseName Returns the filename without the file extension

func Copy

func Copy(srcFile, dstFile string) error

func CopyDirectory

func CopyDirectory(srcDir, destDir string, opts CopyOpts) error
func CopySymLink(source, dest string) error

func CreateIfNotExists

func CreateIfNotExists(dir string, perm os.FileMode) error

func Exists

func Exists(p string) bool

func LsDir

func LsDir(dir string, recursive bool) ([]string, error)

Types

type CopyOpts

type CopyOpts struct {
	Override  bool
	Recursive bool
}

Jump to

Keyboard shortcuts

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