Skip to content

Commit 09329d4

Browse files
this should fix the missing functions
1 parent 257a1ab commit 09329d4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

lib/spawn/helper_linux.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,8 @@ func prepareExecutable() error {
6464
func UnzipExecutable(path string) error {
6565
return unzip(path, GetThrustDirectory())
6666
}
67+
68+
func PathNotExist(path string) bool {
69+
_, err := os.Stat(path)
70+
return os.IsNotExist(err)
71+
}

lib/spawn/helper_windows.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,8 @@ func prepareExecutable() error {
6565
func UnzipExecutable(path string) error {
6666
return unzip(path, GetThrustDirectory())
6767
}
68+
69+
func PathNotExist(path string) bool {
70+
_, err := os.Stat(path)
71+
return os.IsNotExist(err)
72+
}

0 commit comments

Comments
 (0)