Documentation
¶
Index ¶
- func CountLinesFile(fileName string, bufferLenght int) (int, error)
- func FileExists(filename string) bool
- func FindFiles(path string) []string
- func GetFileContentType(fileName string) (string, error)
- func GetFileDate(filepath string) string
- func GetFileModification(filepath string) int64
- func IsDir(path string) bool
- func IsFile(path string) bool
- func ReadFileInArray(filePath string) []string
- func VerifyFilesExists(filePath string, files []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountLinesFile ¶ added in v0.0.5
CountLinesFile return the number of lines in the given file
func FileExists ¶ added in v0.0.7
FileExists verify that the file exist
func FindFiles ¶
FindFiles is delegated to find the files from the given directory, recursively for each dir
func GetFileContentType ¶ added in v0.0.5
GetFileContentType is delegated to retrieve the filetype for a given file path
func GetFileDate ¶
GetFileDate is delegated to return the date in a string format in which the file was (latest) modified
func GetFileModification ¶
GetFileModification return the last modification time of the file in input in a UNIX time format
func ReadFileInArray ¶
ReadFileInArray is delegated to read the file content as tokenize the data by the new line
func VerifyFilesExists ¶
VerifyFilesExists is delegated to verify that the given list of file exist in the directory
Types ¶
This section is empty.