osutils

package
v0.0.0-...-62934a5 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MoveDirContent

func MoveDirContent(src string, dest string, rootExclude ...string) error

MoveDirContent moves the src dir content, that is not listed in the exclide list, to dest dir (it will be created if missing).

The rootExclude argument is used to specify a list of src root entries to exclude.

Note that this method doesn't delete the old src dir.

It is an alternative to os.Rename() for the cases where we can't rename/delete the src dir (see https://github.com/pocketbase/pocketbase/issues/2519).

Types

This section is empty.

Jump to

Keyboard shortcuts

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