mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-13 16:19:05 +02:00
committed by
Calle Pettersson
parent
517cd3b04b
commit
8841091f9c
+14
@@ -0,0 +1,14 @@
|
||||
package ospath
|
||||
|
||||
import (
|
||||
"path"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
// Join joins paths using the target OS's path separator.
|
||||
func Join(os string, elem ...string) string {
|
||||
if os == "windows" {
|
||||
return filepath.Join(elem...)
|
||||
}
|
||||
return path.Join(elem...)
|
||||
}
|
||||
Reference in New Issue
Block a user