file_helpers

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 7 Imported by: 7

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