filetools

package
Version: v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

*

*     ______                 __
*    /\__  _\               /\ \
*    \/_/\ \/     ___     __\ \ \         __      ___     ___     __
*       \ \ \    / ___\ / __ \ \ \  __  / __ \  /  _  \  / ___\ / __ \
*        \_\ \__/\ \__//\  __/\ \ \_\ \/\ \_\ \_/\ \/\ \/\ \__//\  __/
*        /\_____\ \____\ \____\\ \____/\ \__/ \_\ \_\ \_\ \____\ \____\
*        \/_____/\/____/\/____/ \/___/  \/__/\/_/\/_/\/_/\/____/\/____/
*
*
*                                                                    @寒冰
*                                                            www.icezzz.cn
*                                                     hanbin020706@163.com

*

*     ______                 __
*    /\__  _\               /\ \
*    \/_/\ \/     ___     __\ \ \         __      ___     ___     __
*       \ \ \    / ___\ / __ \ \ \  __  / __ \  /  _  \  / ___\ / __ \
*        \_\ \__/\ \__//\  __/\ \ \_\ \/\ \_\ \_/\ \/\ \/\ \__//\  __/
*        /\_____\ \____\ \____\\ \____/\ \__/ \_\ \_\ \_\ \____\ \____\
*        \/_____/\/____/\/____/ \/___/  \/__/\/_/\/_/\/_/\/____/\/____/
*
*
*                                                                    @寒冰
*                                                            www.icezzz.cn
*                                                     hanbin020706@163.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(files []*os.File, dest string) error

压缩 使用gzip压缩成tar.gz

func CreateFile

func CreateFile(name string) (*os.File, error)

创建指定路径下面的文件

func CreatePath

func CreatePath(path string) error

创建路径

func DeCompress

func DeCompress(tarFile, dest string) error

解压 tar.gz

func PathExists

func PathExists(path string) (bool, error)

判断文件夹是否存在

func ReadFile

func ReadFile(path string) (*os.File, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL