fileutil

package module
v0.0.0-...-7586c34 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2016 License: MIT Imports: 5 Imported by: 0

README

Go Report Card

GoDoc

GitHub license

Documentation

Overview

Package fileutil provides various utility functions for working with files.

Index

Constants

This section is empty.

Variables

View Source
var ErrDestNotDir = errors.New("destination is not a directory")

ErrDestNotDir is returned by UnzipFile if the destination path is not a directory

Functions

func CopyFile

func CopyFile(sourceFilePath string, destFilePath string) error

CopyFile copies a file from the provided source to the destination

func UnzipFile

func UnzipFile(sourceFilePath string, destDirPath string) error

UnzipFile unzips a file located at sourceFilePath to the provided destination directory

func ZipDir

func ZipDir(sourceDirPath string, destFilePath string) error

ZipDir zips a directory located at sourceDirPath to the provided destination file

func ZipFile

func ZipFile(sourceFilePath string, destFilePath string) error

ZipFile zips the provided source file to the destination file

Types

This section is empty.

Jump to

Keyboard shortcuts

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