Once installed the audit-tool is a binary and can be run from any directory. If there is a tmp or output directory where it is run they will be wiped out without further notice:
|
func GenerateTemporaryDirs() { |
|
command := exec.Command("rm", "-rf", "tmp") |
|
_, _ = RunCommand(command) |
|
|
|
command = exec.Command("rm", "-rf", "./output/") |
|
_, _ = RunCommand(command) |
A standard way of working with tmp files and directories is to have them created in the OS directory designed for the the purpose, often /tmp on Linux. An example can be found here:
https://gobyexample.com/temporary-files-and-directories
Once installed the audit-tool is a binary and can be run from any directory. If there is a tmp or output directory where it is run they will be wiped out without further notice:
audit/pkg/helpers.go
Lines 150 to 155 in 65771ff
A standard way of working with tmp files and directories is to have them created in the OS directory designed for the the purpose, often /tmp on Linux. An example can be found here:
https://gobyexample.com/temporary-files-and-directories