Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Przybyl committed Oct 9, 2024
1 parent 2bcc49c commit 73262cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/common/pathx/pathx.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ func DirAndFileName(path string) (string, string) {

func RandomDir(tmpDir string, prefix string) string {
suffix, _ := goutils.RandomNumeric(8)
return Abs(filepath.Join(tmpDir, prefix+"_"+suffix))
return filepath.Join(tmpDir, prefix+"_"+suffix)
}

func RandomFileName(tmpDir string, prefix string, extension string) string {
suffix, _ := goutils.RandomNumeric(8)
return Abs(filepath.Join(tmpDir, prefix+"_"+suffix+extension))
return filepath.Join(tmpDir, prefix+"_"+suffix+extension)
}

0 comments on commit 73262cd

Please sign in to comment.