files

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package files provides utility functions for file and directory operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(path string) (bool, error)

DirExists checks if a directory exists at the given path.

func IsTextFile

func IsTextFile(path string) (bool, error)

IsTextFile checks if the file at the given path is a text file by reading a portion of its content. Files with common binary file extensions are ruled out without reading.

func RemoveChildren

func RemoveChildren(dirPath string) error

RemoveChildren removes all files and subdirectories within the specified directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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