Documentation ¶
Index ¶
- Constants
- Variables
- func Abs(target string) string
- func AppendStringToFile(path, text string)
- func Copy(from string, to string)
- func CopyFolderContentToFolder(from string, to string, filter FileFilter, directChildren bool)
- func Delete(filename string)
- func EngageDeleteSafeLock(safeLock bool)
- func ExtensionIs(file string, ext string) bool
- func FileExists(filename string) bool
- func IsFile(target string) bool
- func IsFolder(target string) bool
- func ListFiles(target string, filter FileFilter, directChildren bool) []string
- func NameWithoutExtention(file string) string
- func Parent(file string) string
- func PathToArray(path string) []string
- func ReadFileToString(file string) string
- func SplitPath(fullPath, prefixPath string) string
- func WriteStringToFile(file, data string)
- type FileFilter
Constants ¶
View Source
const ALL_CHILDREN = !DIRECT_CHILDREN
View Source
const DIRECT_CHILDREN = true
Variables ¶
View Source
var FoldersOnly = func(file string) bool { return IsFolder(file) }
Functions ¶
func AppendStringToFile ¶
func AppendStringToFile(path, text string)
func CopyFolderContentToFolder ¶
func CopyFolderContentToFolder(from string, to string, filter FileFilter, directChildren bool)
func EngageDeleteSafeLock ¶
func EngageDeleteSafeLock(safeLock bool)
func ExtensionIs ¶
func FileExists ¶
func NameWithoutExtention ¶
func PathToArray ¶
func ReadFileToString ¶
func WriteStringToFile ¶
func WriteStringToFile(file, data string)
Types ¶
type FileFilter ¶
Click to show internal directories.
Click to hide internal directories.