fs

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

This is quite a simple implementation of this, for a more complete one see: https://github.com/moby/moby/blob/master/daemon/graphdriver/copy/copy.go

Index

Constants

View Source
const (
	FILE_PERMISSIONS os.FileMode = 0644
	DIR_PERMISSIONS  os.FileMode = 0755
)

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(src, dst string) error

Recursively copies a directory from src to dst.

func CopyFile

func CopyFile(src, dst string) error

Copy a file from src to dst.

func FoldBin

func FoldBin(foldHome string) string

func FoldHome

func FoldHome() (string, error)

func FoldTemplates

func FoldTemplates(foldHome string) string

func IsEmpty

func IsEmpty(path string) (bool, error)

This takes a path to a directory and tells you if it is empty or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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