fs

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonPath

func CanonPath(s string) (ret string, err error)

CanonPath returns the canonical absolute path of the given value.

func Copy

func Copy(src string, dst string) (err error)

Copy copies a file or a directory.

func IsRootDir added in v0.1.1

func IsRootDir(dir string) bool

func IsSubDir added in v0.1.1

func IsSubDir(subDir string, parentDir string) (bool, error)

func Move

func Move(src string, dst string) (err error)

Move moves a file or a directory.

func Touch

func Touch(path string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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