Documentation
¶
Overview ¶
Package ioHelpers provides simple I/O utilities for files and streams.
Index ¶
- func Backup(table, location string)
- func Copy(fileName string, fromPath string, toPath string) bool
- func CopyFile(src, dst string) error
- func DeleteFolder(path string) error
- func Dir(path string) ([]string, error)
- func Dump(tableName string, where paths.FileSystemPath, action string, recordID string, ...)
- func Empty(dir string) error
- func GetDBFileName(name string) string
- func GetFolders(path string) ([]string, error)
- func MkDir(path string) error
- func MkdirAll(path string) error
- func Read(fileName string, path string) (string, error)
- func Touch(filename string) bool
- func Write(fileName string, path string, content string) (bool, error)
- func WriteData(fileName string, path string, content string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶
The Copy function copies a file from one path to another and returns true if the copy was successful.
func DeleteFolder ¶
func Empty ¶
Empty clears the contents of a specified directory The function "Empty" deletes all files in a given directory.
func GetDBFileName ¶
func GetFolders ¶
func Read ¶
The Read function reads the content of a file given its name and path, and returns the content as a string.
func Touch ¶
Touch returns true if the specified file existing on the filesystem The Touch function takes a filename as input and returns a boolean value indicating whether the file was successfully touched.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.