recycle

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StatError = errors.New("fileinfo.Sys() is not *syscall.Stat_t")

Functions

func CheckEmpty added in v1.5.0

func CheckEmpty(dir string) error

CheckEmpty returns error if specified directory is not empty.

func NewCommandRecycle added in v1.3.0

func NewCommandRecycle(name string, out io.Writer) *cobra.Command

NewCommandRecycle provides a CLI handler for recycling volumes

func Recycle

func Recycle(dir string) error

Recycle recursively deletes files and folders within the given path. It does not delete the path itself.

Types

This section is empty.

Jump to

Keyboard shortcuts

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