filesystem

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package filesystem provides generic filesystem operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dest string) error

CopyFile copies a file from src to dest.

func MoveAndMerge

func MoveAndMerge(sourceDir, targetDir string) error

MoveAndMerge moves entries from sourceDir to targetDir. It merges directories recursively if they exist in both source and target. If an entry in sourceDir is a file that already exists in targetDir, it returns an error instead of overwriting it. It also returns an error if sourceDir and targetDir are the same.

func Unzip

func Unzip(ctx context.Context, src, dest string) error

Unzip unzips the src archive into dest directory using the system unzip command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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