cockroach: github.com/cockroachdb/cockroach/pkg/util/fileutil Index | Files

package fileutil

import "github.com/cockroachdb/cockroach/pkg/util/fileutil"

Index

Package Files

copy.go escape.go

func CopyDir Uses

func CopyDir(from, to string) error

CopyDir recursively copies all files and directories in the from directory into the to directory. If the to directory does not exist, it is created.

func EscapeFilename Uses

func EscapeFilename(s string) string

EscapeFilename replaces bad characters in a filename with safe equivalents. The only character disallowed on Unix systems is the path separator "/". Windows is more restrictive; banned characters on Windows are listed here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx

Package fileutil imports 5 packages (graph) and is imported by 6 packages. Updated 2019-07-14. Refresh now. Tools for package owners.