fileutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: MIT Imports: 6 Imported by: 2

Documentation

Overview

Package fileutil provides a set of useful file related utilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(srcPath, targetPath string, forceReplace bool) error

CopyFile copies a file from source path to target path

func CreateFile

func CreateFile(targetDir, fileName string) error

CreateFile creates a file in the target directory, including creating missing directories in the path

func MoveFile

func MoveFile(srcPath, targetPath string, forceReplace bool) error

MoveFile moves a file from source path to target path

func ReadFileContent

func ReadFileContent(inputFilePath string) ([]string, error)

ReadFileContent read content of the input file to a string array

Types

This section is empty.

Jump to

Keyboard shortcuts

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