fileutils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 6 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindFiles

func FindFiles(path string) []string

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

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

ReadAllFileInArray 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