files

package
v0.0.0-...-0caaa62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 12 Imported by: 0

Documentation

Overview

Package files provides files operations helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(src, dest string)

CopyDir copies files recursively from source to destination dir.

func CopyFile

func CopyFile(source string, dest string, mode os.FileMode) (err error)

CopyFile copies source file to destination.

func IsExist

func IsExist(path string) bool

IsExist checks whether a file or directory exists. It returns false when the file or directory does not exist.

func Reader

func Reader(filePath string) (r io.Reader, size int64, close func() error, e error)

Reader returns a Reader to the given file, with its size and close call.

func Save

func Save(path string, data []byte, mode os.FileMode) error

Save write a file to disk at given location.

func SetLastModif

func SetLastModif(path ...string) error

SetLastModif save download date file for a package.

func UnTarGz

func UnTarGz(topath string, source io.ReadCloser) error

UnTarGz extracts a tar gz reader to disk at given location.

thanks to github.com/verybluebot/tarinator-go.

Types

This section is empty.

Directories

Path Synopsis
Package fileaccess serialize files access.
Package fileaccess serialize files access.
Package history provides the core part for services history data management.
Package history provides the core part for services history data management.

Jump to

Keyboard shortcuts

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