processor

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package processor provides functions for file and directory manipulation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupUploadsDirectory

func CleanupUploadsDirectory(temporaryUploadsDirectory string) bool

Used for cleaning up the temporary uploads directory

func CopyDirectory

func CopyDirectory(source string, destination string) bool

Copies a directory to a source destination

func CopyFile

func CopyFile(source string, destination string) bool

Copy a specified file to a specified destination

func CreateDirectory

func CreateDirectory(directoryName string) bool

Create a specified directory

func CreateFile

func CreateFile(Filename string, contentType string) bool

Create a specified file with specified contents as a string

func CreateFileAsByte

func CreateFileAsByte(Filename string, contentType []byte) bool

Create a specified file with specified contents as a byte array

func DirectoryDelete

func DirectoryDelete(directoryName string) bool

Delete a specified directory

func DirectoryOrFileExists

func DirectoryOrFileExists(entryName string) bool

Check if a directory or file exists

func FileDelete

func FileDelete(Filename string) bool

Delete a specified file

func ProcessFilesConcurrently added in v0.0.23

func ProcessFilesConcurrently(filePaths []string, processFunc func(string) error, numWorkers int) error

ProcessFilesConcurrently processes files concurrently using a specified function

func ReadFile

func ReadFile(Filename string) []byte

Read a specified file and return the contents as a byte array

Types

This section is empty.

Jump to

Keyboard shortcuts

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