utils

package
v0.0.0-...-be3e5f0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Archive

func Archive(source, archvFileName string)

Archive - archives file(s) and folder(s)

func CopyFile

func CopyFile(src, tgt string) error

CopyFile - copies file from source location to a target location

func FileNameOnly

func FileNameOnly(fileName string, withExt bool) string

FileNameOnly function to return just the file name

func GetFileList

func GetFileList(folder string, excludeFileList []string) []string

GetFileList - returns the file(s) and folder(s) under a specified folder

func GetFileType

func GetFileType(fileName string) string

GetFileType - gets the file type

func GetFullQualifiedPath

func GetFullQualifiedPath(qualifiedPath, folder string) string

GetFullQualifiedPath - returns the fully qualified path of the specified folder name

func GetTotalRows

func GetTotalRows(fileName string) int

GetTotalRows function to return total number of lines in a given file

func MkdirAll

func MkdirAll(folderName string)

MkdirAll - creates a folder

func UnArchive

func UnArchive(src string, dest string) error

UnArchive will decompress a zip archive, moving all files and folders within the zip file (parameter 1) to an output directory (parameter 2).

Types

This section is empty.

Jump to

Keyboard shortcuts

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