Skip to content

keegancsmith/tmpfriend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tmpfriend Travis-CI GoDoc

tmpfriend is a Go library to help prevent misbehaving subprocesses / code from forgetting to cleanup after themselves. It works by modifying the location of the temporary directory to one unique for the current process, and on start will clean up older temporary directories for non-existant processes.

func main() {
	cleanup := tmpfriend.SetupOrNOOP()
	defer cleanup()
	// ...
}

About

Go library to help tie temporary files to the lifetime of a process.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages