file_helpers

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package file_helpers provides file operation helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(src string, dest string) (err error)

CopyDir copies src directory recursively to dest. Both of src and dest must be a path name. It returns error if dest already exist.

func CopyFile

func CopyFile(src string, dest string) (err error)

CopyFile copies file contents of src to dest. Both of stc and dest must be a path name.

func ExtractTgz

func ExtractTgz(src string, dest string) error

ExtractTgz extracts src archive to the dest directory. Both src and dest must be a path name.

func FileExists

func FileExists(path string) bool

FileExists checks if the file exist or not

func RemoveFile

func RemoveFile(path string) error

RemoveFile removes the file. If the file does not exist, it do nothing and return nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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