mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
15 lines
223 B
Go
15 lines
223 B
Go
package cmd
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// Deprecated: Please use piperutils.Files{} instead
|
|
func fileExists(filename string) bool {
|
|
info, err := os.Stat(filename)
|
|
if os.IsNotExist(err) {
|
|
return false
|
|
}
|
|
return !info.IsDir()
|
|
}
|