ucmd

package
v0.0.0-...-ade9fc0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdCopy

func CmdCopy(newpath, oldpath string) error

CmdCopy 用 cp 命令把 oldpath 拷贝到 newpath

func ExtractTarGz

func ExtractTarGz(absoluteZipFilePathName, outputdir string) error

ExtractTarGz 解压 .tar.gz 文件 @param absoluteZipFilePathName: 压缩包的绝对路径 @param outputdir: 解压到哪个目录下

func ExtractZip

func ExtractZip(absoluteZipFilePathName, outputdir string) error

ExtractZip 解压 .zip 文件 @param absoluteZipFilePathName: 压缩包的绝对路径 @param outputdir: 解压到哪个目录下 需要处理 linux 下 shell 特殊字符,见 https://blog.csdn.net/u013063153/article/details/73838614

func PackTarGz

func PackTarGz(filePath, packagename string) error

PackTarGz 压缩文件为 .tar.gz @param filePath: 图包所在目录的父目录 @param packagename: 图包名字,不带后缀

func PackZip

func PackZip(filePath, packagename string) error

PackZip 压缩文件为 zip @param filePath: 图包所在目录的父目录 @param packagename: 图包名字,不带后缀 例子: cd /tmp;zip -r lane_20180609_11111.zip lane_20180609_11111;cd -

Zip command provides 10 levels of compression ( 0-9 ). -6 is used as default compression level. -0 is used for lowest level compression. -9 is used for hightest level comression 因为图片压缩几乎没有什么效果,把 zip 的压缩 level 调整低一些会快很多。

Types

This section is empty.

Jump to

Keyboard shortcuts

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