filecopy

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Default deletion delay time (30 seconds)
	DefaultDeletionDelay = 30 * time.Second
)

Functions

func CleanupTempFiles

func CleanupTempFiles()

CleanupTempFiles cleans up unused temporary files

func GetTempCopy

func GetTempCopy(originalPath string) (string, error)

GetTempCopy returns a temporary copy path of the original file If the file hasn't changed since the last copy, returns the existing copy

Types

type FileDeletion

type FileDeletion struct {
	Path string
	Time time.Time
}

Jump to

Keyboard shortcuts

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