Skip to content

The audit-tool deletes any tmp and output directory in the directory where it is run #104

@fgiloux

Description

@fgiloux

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions