Documentation ¶
Overview ¶
package fileutils contains all the helper the application needed in order to process file and directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
FileExists checks if a file exists and is not a directory before we try using it to prevent further errors.
func IsDirectory ¶
IsDirectory checks whether path is a directory
func ListFiles ¶
ListFiles checks a directory and gets all the files and dir from it it also sorts the directory content
func LoadFile ¶
LoadFile helper, reads a file from the filepath returns its content and error if it doesn't exists.
func LookupFile ¶
LookupFile in a directory, if it exists, returns the full path to the file if it doesn't returns error takes the directory of the file, and the string containing parts of the file (or the whole file name)
Types ¶
This section is empty.