file

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package file provides utility functionality for working with files and directories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(srcPath, dstPath string) error

Copy copies srcPath to dstPath. It internally uses io.Copy. The destination file is created with the same file mode as the source file. Returns any error that occurred prior to or during the copy operation.

func Exists

func Exists(path string) bool

Exists returns true if path exists.

func IsDirectory

func IsDirectory(path string) (bool, error)

IsDirectory returns true if path is a directory. Returns an error as the second return value if calling stat on path failed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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