Documentation
¶
Overview ¶
Package io contains methods that can be useful for manipulating files/folders
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupFilesWithExt ¶
BackupFilesWithExt take an inline (same folder) copy (adding suffix of .bak to the original names) of the files with the extensions It does not delete the original files
func DeleteFileWithExt ¶
DeleteFileWithExt will delete all the files from the dir with extensions in the list extensions must be in the format .<ext> for matching Exact matches only, and the file end extension will be used to compare For example if the file found in dir is named file-name.txt.bak .bak is the determined extension for comparison
func RestoreAllBakFiles ¶
RestoreAllBakFiles copies all the bak files into their respective original (dropping .bak extension) files and deletes the .bak files
func SafeClosePrint ¶ added in v0.1.0
SafeClosePrint will close the closer safely and print the error
Types ¶
This section is empty.