importer

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

func Import(srcfs fs.ReadOnly, targetfs fs.ExtWriteable, opts ...Option) error

Import imports all files and directories from srcfs to targetfs and stops and returns on the first error. On default it stops on the first error and returns it. however by passing OptionContinueOnError, the import continues and the collected errors are returned. On default it does return an error if a target file already exists, however by passing the option OptionOverwrite this is prevented

Types

type Option

type Option func(*importer)

func OptionContinueOnError

func OptionContinueOnError() Option

func OptionOverwrite

func OptionOverwrite() Option

Jump to

Keyboard shortcuts

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