fileutils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package fileutils provides essential file operation utilities. Because os.Stat gets old after the 100th time

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src, dst string) error

Copy copies file from src to dst. The age-old tradition of reinventing cp

func Exists

func Exists(path string) bool

Exists checks if file or directory exists.

func IsDir

func IsDir(path string) bool

IsDir checks if path is a directory.

func IsFile

func IsFile(path string) bool

IsFile checks if path is a regular file.

func ReadLines

func ReadLines(path string) ([]string, error)

ReadLines reads file lines into slice.

func WriteLines

func WriteLines(path string, lines []string) error

WriteLines writes string slice to file.

Types

This section is empty.