fileops

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFileOrDir

func CopyFileOrDir(src, dst string) error

CopyFileOrDir copies a file or directory from src to dst

func CopyMultiple

func CopyMultiple(sources []string, destDir string) error

CopyMultiple copies multiple files/directories to a destination directory

func CreateDir

func CreateDir(dir, name string) error

CreateDir creates a new directory

func CreateFile

func CreateFile(dir, name string) error

CreateFile creates a new empty file

func Delete

func Delete(path string, isDir bool) error

Delete deletes a file or directory (tries trash first, then permanent delete)

func MoveMultiple

func MoveMultiple(sources []string, destDir string) error

MoveMultiple moves multiple files/directories to a destination directory

func MoveToTrash

func MoveToTrash(path string) error

MoveToTrash moves a file or directory to the system trash/recycle bin

func Rename

func Rename(oldPath, newName string) error

Rename renames a file or directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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