fileutils

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: MIT Imports: 12 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountLinesFile added in v0.0.5

func CountLinesFile(fileName string, bufferLenght int) (int, error)

CountLinesFile return the number of lines in the given file

func FileExists added in v0.0.7

func FileExists(filename string) bool

FileExists verify that the file exist

func FindFiles

func FindFiles(path string) []string

FindFiles is delegated to find the files from the given directory, recursively for each dir

func GetFileContentType added in v0.0.5

func GetFileContentType(fileName string) (string, error)

GetFileContentType is delegated to retrieve the filetype for a given file path

func GetFileDate

func GetFileDate(filepath string) string

GetFileDate is delegated to return the date in a string format in which the file was (latest) modified

func GetFileModification

func GetFileModification(filepath string) int64

GetFileModification return the last modification time of the file in input in a UNIX time format

func IsDir

func IsDir(path string) bool

IsDir is delegated to verify that the given path is a directory

func IsFile

func IsFile(path string) bool

IsFile verify if a give filepath is a directory

func ReadFileInArray

func ReadFileInArray(filePath string) []string

ReadFileInArray is delegated to read the file content as tokenize the data by the new line

func VerifyFilesExists

func VerifyFilesExists(filePath string, files []string) bool

VerifyFilesExists is delegated to verify that the given list of file exist in the directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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