file_operations

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearDirectory

func ClearDirectory(dirPath string) error

Directory operations

func CopyFile

func CopyFile(srcPath string, destPath string) error

File operations

func ExplodeFolder

func ExplodeFolder(destPath string, explodeDir string) (bool, error)

copies all contents out of destPath/explodeDir into destPath, then removes destPath/explodeDir bool: whether the folder was found

func SearchAndReplace

func SearchAndReplace(path string, glob string, searchTerm string, replaceTerm string, isRegex bool) (bool, error)

Content operations

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL